Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1436f2

Browse files
[po] auto sync
1 parent 6f1c4ca commit a1436f2

33 files changed

+1991
-2549
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.31%", "updated_at": "2025-02-20T07:46:02Z"}
1+
{"translation": "81.14%", "updated_at": "2025-02-21T15:46:28Z"}

c-api/function.po

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"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"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -179,22 +179,34 @@ msgstr ""
179179
"``0``,或者出错时(比如当给定的 *watcher_id* 未被注册)返回 ``-1`` 并设置一个异常。"
180180

181181
#: ../../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``"
187203
msgstr ""
188-
"由以下可能的函数监视器事件组成的枚举: - ``PyFunction_EVENT_CREATE`` - "
189-
"``PyFunction_EVENT_DESTROY`` - ``PyFunction_EVENT_MODIFY_CODE`` - "
190-
"``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
191-
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
192204

193-
#: ../../c-api/function.rst:160
205+
#: ../../c-api/function.rst:161
194206
msgid "Type of a function watcher callback function."
195207
msgstr "函数监视器回调函数的类型。"
196208

197-
#: ../../c-api/function.rst:162
209+
#: ../../c-api/function.rst:163
198210
msgid ""
199211
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
200212
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a "
@@ -205,13 +217,13 @@ msgstr ""
205217
"*new_value* 将为 ``NULL``。 在其他情况下,*new_value* 将为被修改的属性持有一个指向要保存在 *func* 中的新值的 "
206218
":term:`borrowed reference`。"
207219

208-
#: ../../c-api/function.rst:167
220+
#: ../../c-api/function.rst:168
209221
msgid ""
210222
"The callback may inspect but must not modify *func*; doing so could have "
211223
"unpredictable effects, including infinite recursion."
212224
msgstr "该回调可以检查但不能修改 *func*; 这样做可能具有不可预知的影响,包括无限递归。"
213225

214-
#: ../../c-api/function.rst:170
226+
#: ../../c-api/function.rst:171
215227
msgid ""
216228
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
217229
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -226,7 +238,7 @@ msgstr ""
226238
"在其他情况下,该回调会在对 *func* 进行修改之前被唤起,这样就可以检查 *func* 之前的状态。 如有可能函数对象的创建允许被运行时优化掉。 "
227239
"在此情况下将不发出任何事件。 虽然根据不同的优化决定这会产生可被观察到的运行时行为变化,但是它不会改变被运行的 Python 代码的语义。"
228240

229-
#: ../../c-api/function.rst:179
241+
#: ../../c-api/function.rst:180
230242
msgid ""
231243
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
232244
"callback to the about-to-be-destroyed function will resurrect it, preventing"
@@ -237,7 +249,7 @@ msgstr ""
237249
"``PyFunction_EVENT_DESTROY``,则在回调中接受一个即将销毁的函数的引用将使其重生,并阻止其在此时被释放。 "
238250
"当重生的对象以后再被销毁时,任何在当时已激活的监视器回调将再次被调用。"
239251

240-
#: ../../c-api/function.rst:184
252+
#: ../../c-api/function.rst:185
241253
msgid ""
242254
"If the callback sets an exception, it must return ``-1``; this exception "
243255
"will be printed as an unraisable exception using "
@@ -246,7 +258,7 @@ msgstr ""
246258
"如果该回调设置了一个异常,则它必须返回 ``-1``;此异常将作为不可引发的异常使用 :c:func:`PyErr_WriteUnraisable` "
247259
"打印出来。 在其他情况下它应当返回 ``0``。"
248260

249-
#: ../../c-api/function.rst:188
261+
#: ../../c-api/function.rst:189
250262
msgid ""
251263
"There may already be a pending exception set on entry to the callback. In "
252264
"this case, the callback should return ``0`` with the same exception still "

0 commit comments

Comments
 (0)