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