@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.13\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2025-01-17 14:16+0000\n "
18
+ "POT-Creation-Date : 2025-02-21 14:16+0000\n "
19
19
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
20
20
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2025\n "
21
21
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -183,22 +183,34 @@ msgstr ""
183
183
"``0``,或者出错时(比如当给定的 *watcher_id* 未被注册)返回 ``-1`` 并设置一个异常。"
184
184
185
185
#: ../../c-api/function.rst:148
186
- msgid ""
187
- "Enumeration of possible function watcher events: - "
188
- "``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
189
- "``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
190
- "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
186
+ msgid "Enumeration of possible function watcher events:"
187
+ msgstr ""
188
+
189
+ #: ../../c-api/function.rst:150
190
+ msgid "``PyFunction_EVENT_CREATE``"
191
+ msgstr ""
192
+
193
+ #: ../../c-api/function.rst:151
194
+ msgid "``PyFunction_EVENT_DESTROY``"
195
+ msgstr ""
196
+
197
+ #: ../../c-api/function.rst:152
198
+ msgid "``PyFunction_EVENT_MODIFY_CODE``"
199
+ msgstr ""
200
+
201
+ #: ../../c-api/function.rst:153
202
+ msgid "``PyFunction_EVENT_MODIFY_DEFAULTS``"
203
+ msgstr ""
204
+
205
+ #: ../../c-api/function.rst:154
206
+ msgid "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
191
207
msgstr ""
192
- "由以下可能的函数监视器事件组成的枚举: - ``PyFunction_EVENT_CREATE`` - "
193
- "``PyFunction_EVENT_DESTROY`` - ``PyFunction_EVENT_MODIFY_CODE`` - "
194
- "``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
195
- "``PyFunction_EVENT_MO
F438
DIFY_KWDEFAULTS``"
196
208
197
- #: ../../c-api/function.rst:160
209
+ #: ../../c-api/function.rst:161
198
210
msgid "Type of a function watcher callback function."
199
211
msgstr "函数监视器回调函数的类型。"
200
212
201
- #: ../../c-api/function.rst:162
213
+ #: ../../c-api/function.rst:163
202
214
msgid ""
203
215
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
204
216
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a "
@@ -209,13 +221,13 @@ msgstr ""
209
221
"*new_value* 将为 ``NULL``。 在其他情况下,*new_value* 将为被修改的属性持有一个指向要保存在 *func* 中的新值的 "
210
222
":term:`borrowed reference`。"
211
223
212
- #: ../../c-api/function.rst:167
224
+ #: ../../c-api/function.rst:168
213
225
msgid ""
214
226
"The callback may inspect but must not modify *func*; doing so could have "
215
227
"unpredictable effects, including infinite recursion."
216
228
msgstr "该回调可以检查但不能修改 *func*; 这样做可能具有不可预知的影响,包括无限递归。"
217
229
218
- #: ../../c-api/function.rst:170
230
+ #: ../../c-api/function.rst:171
219
231
msgid ""
220
232
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
221
233
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -230,7 +242,7 @@ msgstr ""
230
242
"在其他情况下,该回调会在对 *func* 进行修改之前被唤起,这样就可以检查 *func* 之前的状态。 如有可能函数对象的创建允许被运行时优化掉。 "
231
243
"在此情况下将不发出任何事件。 虽然根据不同的优化决定这会产生可被观察到的运行时行为变化,但是它不会改变被运行的 Python 代码的语义。"
232
244
233
- #: ../../c-api/function.rst:179
245
+ #: ../../c-api/function.rst:180
234
246
msgid ""
235
247
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
236
248
"callback to the about-to-be-destroyed function will resurrect it, preventing"
@@ -241,7 +253,7 @@ msgstr ""
241
253
"``PyFunction_EVENT_DESTROY``,则在回调中接受一个即将销毁的函数的引用将使其重生,并阻止其在此时被释放。 "
242
254
"当重生的对象以后再被销毁时,任何在当时已激活的监视器回调将再次被调用。"
243
255
244
- #: ../../c-api/function.rst:184
256
+ #: ../../c-api/function.rst:185
245
257
msgid ""
246
258
"If the callback sets an exception, it must return ``-1``; this exception "
247
259
"will be printed as an unraisable exception using "
@@ -250,7 +262,7 @@ msgstr ""
250
262
"如果该回调设置了一个异常,则它必须返回 ``-1``;此异常将作为不可引发的异常使用 :c:func:`PyErr_WriteUnraisable` "
251
263
"打印出来。 在其他情况下它应当返回 ``0``。"
252
264
253
- #: ../../c-api/function.rst:188
265
+ #: ../../c-api/function.rst:189
254
266
msgid ""
255
267
"There may already be a pending exception set on entry to the callback. In "
256
268
"this case, the callback should return ``0`` with the same exception still "
0 commit comments