Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce60de4

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 831695b0
1 parent2c07101 commitce60de4

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

‎c-api/function.po

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version:Python 3.13\n"
1212
"Report-Msgid-Bugs-To:\n"
13-
"POT-Creation-Date:2023-12-13 00:03+0000\n"
13+
"POT-Creation-Date:2025-02-17 00:15+0000\n"
1414
"PO-Revision-Date:2022-11-12 15:45+0800\n"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -187,32 +187,48 @@ msgid ""
187187
msgstr""
188188

189189
#:../../c-api/function.rst:148
190-
msgid""
191-
"Enumeration of possible function watcher events: - "
192-
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
193-
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
194-
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
190+
msgid"Enumeration of possible function watcher events:"
191+
msgstr""
192+
193+
#:../../c-api/function.rst:150
194+
msgid"``PyFunction_EVENT_CREATE``"
195+
msgstr""
196+
197+
#:../../c-api/function.rst:151
198+
msgid"``PyFunction_EVENT_DESTROY``"
199+
msgstr""
200+
201+
#:../../c-api/function.rst:152
202+
msgid"``PyFunction_EVENT_MODIFY_CODE``"
203+
msgstr""
204+
205+
#:../../c-api/function.rst:153
206+
msgid"``PyFunction_EVENT_MODIFY_DEFAULTS``"
207+
msgstr""
208+
209+
#:../../c-api/function.rst:154
210+
msgid"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
195211
msgstr""
196212

197-
#:../../c-api/function.rst:160
213+
#:../../c-api/function.rst:161
198214
msgid"Type of a function watcher callback function."
199215
msgstr""
200216

201-
#:../../c-api/function.rst:162
217+
#:../../c-api/function.rst:163
202218
msgid""
203219
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
204220
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
205221
"`borrowed reference` to the new value that is about to be stored in *func* "
206222
"for the attribute that is being modified."
207223
msgstr""
208224

209-
#:../../c-api/function.rst:167
225+
#:../../c-api/function.rst:168
210226
msgid""
211227
"The callback may inspect but must not modify *func*; doing so could have "
212228
"unpredictable effects, including infinite recursion."
213229
msgstr""
214230

215-
#:../../c-api/function.rst:170
231+
#:../../c-api/function.rst:171
216232
msgid""
217233
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
218234
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -224,22 +240,22 @@ msgid ""
224240
"semantics of the Python code being executed."
225241
msgstr""
226242

227-
#:../../c-api/function.rst:179
243+
#:../../c-api/function.rst:180
228244
msgid""
229245
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
230246
"callback to the about-to-be-destroyed function will resurrect it, preventing "
231247
"it from being freed at this time. When the resurrected object is destroyed "
232248
"later, any watcher callbacks active at that time will be called again."
233249
msgstr""
234250

235-
#:../../c-api/function.rst:184
251+
#:../../c-api/function.rst:185
236252
msgid""
237253
"If the callback sets an exception, it must return ``-1``; this exception "
238254
"will be printed as an unraisable exception using :c:func:"
239255
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
240256
msgstr""
241257

242-
#:../../c-api/function.rst:188
258+
#:../../c-api/function.rst:189
243259
msgid""
244260
"There may already be a pending exception set on entry to the callback. In "
245261
"this case, the callback should return ``0`` with the same exception still "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp