Skip to content

Commit 642d579

Browse files
[po] auto sync
1 parent 0290506 commit 642d579

File tree

4 files changed

+171
-107
lines changed

4 files changed

+171
-107
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.61%", "updated_at": "2025-07-31T15:59:06Z"}
1+
{"translation": "81.58%", "updated_at": "2025-08-03T15:58:14Z"}

c-api/code.po

Lines changed: 117 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 15:00+0000\n"
14+
"POT-Creation-Date: 2025-08-03 14:51+0000\n"
1515
"PO-Revision-Date: 2025-07-18 19:20+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -294,30 +294,128 @@ msgstr ""
294294
"在进入回调时可能已经设置了尚未处理的异常。 在此情况下,回调应当返回 ``0`` 并仍然设置同样的异常。 这意味着该回调可能不会调用任何其他可设置异常的"
295295
" API 除非它先保存并清空异常状态,并在返回之前恢复它。"
296296

297-
#: ../../c-api/code.rst:215
297+
#: ../../c-api/code.rst:217
298+
msgid "Code Object Flags"
299+
msgstr ""
300+
301+
#: ../../c-api/code.rst:219
302+
msgid ""
303+
"Code objects contain a bit-field of flags, which can be retrieved as the "
304+
":attr:`~codeobject.co_flags` Python attribute (for example using "
305+
":c:func:`PyObject_GetAttrString`), and set using a *flags* argument to "
306+
":c:func:`PyUnstable_Code_New` and similar functions."
307+
msgstr ""
308+
309+
#: ../../c-api/code.rst:224
310+
msgid ""
311+
"Flags whose names start with ``CO_FUTURE_`` correspond to features normally "
312+
"selectable by :ref:`future statements <future>`. These flags can be used in "
313+
":c:member:`PyCompilerFlags.cf_flags`. Note that many ``CO_FUTURE_`` flags "
314+
"are mandatory in current versions of Python, and setting them has no effect."
315+
msgstr ""
316+
317+
#: ../../c-api/code.rst:230
318+
msgid ""
319+
"The following flags are available. For their meaning, see the linked "
320+
"documentation of their Python equivalents."
321+
msgstr ""
322+
323+
#: ../../c-api/code.rst:238
324+
msgid "Flag"
325+
msgstr "旗标"
326+
327+
#: ../../c-api/code.rst:239
328+
msgid "Meaning"
329+
msgstr "含意"
330+
331+
#: ../../c-api/code.rst:241
332+
msgid ":py:data:`inspect.CO_OPTIMIZED`"
333+
msgstr ""
334+
335+
#: ../../c-api/code.rst:243
336+
msgid ":py:data:`inspect.CO_NEWLOCALS`"
337+
msgstr ""
338+
339+
#: ../../c-api/code.rst:245
340+
msgid ":py:data:`inspect.CO_VARARGS`"
341+
msgstr ""
342+
343+
#: ../../c-api/code.rst:247
344+
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
345+
msgstr ""
346+
347+
#: ../../c-api/code.rst:249
348+
msgid ":py:data:`inspect.CO_NESTED`"
349+
msgstr ""
350+
351+
#: ../../c-api/code.rst:251
352+
msgid ":py:data:`inspect.CO_GENERATOR`"
353+
msgstr ""
354+
355+
#: ../../c-api/code.rst:253
356+
msgid ":py:data:`inspect.CO_COROUTINE`"
357+
msgstr ""
358+
359+
#: ../../c-api/code.rst:255
360+
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
361+
msgstr ""
362+
363+
#: ../../c-api/code.rst:257
364+
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
365+
msgstr ""
366+
367+
#: ../../c-api/code.rst:260
368+
msgid "no effect (:py:data:`__future__.division`)"
369+
msgstr ""
370+
371+
#: ../../c-api/code.rst:262
372+
msgid "no effect (:py:data:`__future__.absolute_import`)"
373+
msgstr ""
374+
375+
#: ../../c-api/code.rst:264
376+
msgid "no effect (:py:data:`__future__.with_statement`)"
377+
msgstr ""
378+
379+
#: ../../c-api/code.rst:266
380+
msgid "no effect (:py:data:`__future__.print_function`)"
381+
msgstr ""
382+
383+
#: ../../c-api/code.rst:268
384+
msgid "no effect (:py:data:`__future__.unicode_literals`)"
385+
msgstr ""
386+
387+
#: ../../c-api/code.rst:270
388+
msgid "no effect (:py:data:`__future__.generator_stop`)"
389+
msgstr ""
390+
391+
#: ../../c-api/code.rst:272
392+
msgid ":py:data:`__future__.annotations`"
393+
msgstr ""
394+
395+
#: ../../c-api/code.rst:276
298396
msgid "Extra information"
299397
msgstr "附加信息"
300398

301-
#: ../../c-api/code.rst:217
399+
#: ../../c-api/code.rst:278
302400
msgid ""
303401
"To support low-level extensions to frame evaluation, such as external just-"
304402
"in-time compilers, it is possible to attach arbitrary extra data to code "
305403
"objects."
306404
msgstr "为了支持对帧求值的低层级扩展,如外部即时编译器等,可以在代码对象上附加任意的额外数据。"
307405

308-
#: ../../c-api/code.rst:221
406+
#: ../../c-api/code.rst:282
309407
msgid ""
310408
"These functions are part of the unstable C API tier: this functionality is a"
311409
" CPython implementation detail, and the API may change without deprecation "
312410
"warnings."
313411
msgstr "这些函数是不稳定 C API 层的一部分:该功能是 CPython 的实现细节,此 API 可能随时改变而不发出弃用警告。"
314412

315-
#: ../../c-api/code.rst:227
413+
#: ../../c-api/code.rst:288
316414
msgid ""
317415
"Return a new an opaque index value used to adding data to code objects."
318416
msgstr "返回一个新的不透明索引值用于向代码对象添加数据。"
319417

320-
#: ../../c-api/code.rst:229
418+
#: ../../c-api/code.rst:290
321419
msgid ""
322420
"You generally call this function once (per interpreter) and use the result "
323421
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
@@ -326,7 +424,7 @@ msgstr ""
326424
"通常情况下(对于每个解释器)你只需调用该函数一次然后将调用结果与 ``PyCode_GetExtra`` 和 ``PyCode_SetExtra`` "
327425
"一起使用以操作单个代码对象上的数据。"
328426

329-
#: ../../c-api/code.rst:233
427+
#: ../../c-api/code.rst:294
330428
msgid ""
331429
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be"
332430
" called on non-``NULL`` data stored under the new index. Use "
@@ -335,50 +433,50 @@ msgstr ""
335433
"如果 *free* 没有不为 ``NULL``: 当代码对象被释放时,*free* 将在存储于新索引下的非 ``NULL`` 数据上被调用。 当存储 "
336434
":c:type:`PyObject` 时使用 :c:func:`Py_DecRef`。"
337435

338-
#: ../../c-api/code.rst:239
436+
#: ../../c-api/code.rst:300
339437
msgid "as ``_PyEval_RequestCodeExtraIndex``"
340438
msgstr "作为 ``_PyEval_RequestCodeExtraIndex``"
341439

342-
#: ../../c-api/code.rst:243
440+
#: ../../c-api/code.rst:304
343441
msgid ""
344442
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
345443
"is deprecated, but will be available until the API changes."
346444
msgstr ""
347445
"重命名为 ``PyUnstable_Eval_RequestCodeExtraIndex``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
348446

349-
#: ../../c-api/code.rst:249
447+
#: ../../c-api/code.rst:310
350448
msgid ""
351449
"Set *extra* to the extra data stored under the given index. Return 0 on "
352450
"success. Set an exception and return -1 on failure."
353451
msgstr "将 *extra* 设为存储在给定索引下的额外数据。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
354452

355-
#: ../../c-api/code.rst:252
453+
#: ../../c-api/code.rst:313
356454
msgid ""
357455
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
358456
"without setting an exception."
359457
msgstr "如果未在索引下设置数据,则将 *extra* 设为 ``NULL`` 并返回 0 而不设置异常。"
360458

361-
#: ../../c-api/code.rst:257
459+
#: ../../c-api/code.rst:318
362460
msgid "as ``_PyCode_GetExtra``"
363461
msgstr "作为 ``_PyCode_GetExtra``"
364462

365-
#: ../../c-api/code.rst:261
463+
#: ../../c-api/code.rst:322
366464
msgid ""
367465
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated,"
368466
" but will be available until the API changes."
369467
msgstr "重命名为 ``PyUnstable_Code_GetExtra``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
370468

371-
#: ../../c-api/code.rst:267
469+
#: ../../c-api/code.rst:328
372470
msgid ""
373471
"Set the extra data stored under the given index to *extra*. Return 0 on "
374472
"success. Set an exception and return -1 on failure."
375473
msgstr "将存储在给定索引下的额外数据设为 *extra*。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
376474

377-
#: ../../c-api/code.rst:272
475+
#: ../../c-api/code.rst:333
378476
msgid "as ``_PyCode_SetExtra``"
379477
msgstr "作为 ``_PyCode_SetExtra``"
380478

381-
#: ../../c-api/code.rst:276
479+
#: ../../c-api/code.rst:337
382480
msgid ""
383481
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated,"
384482
" but will be available until the API changes."
@@ -404,14 +502,14 @@ msgstr "PyCode_New (C 函数)"
404502
msgid "PyCode_NewWithPosOnlyArgs (C function)"
405503
msgstr "PyCode_NewWithPosOnlyArgs (C 函数)"
406504

407-
#: ../../c-api/code.rst:237
505+
#: ../../c-api/code.rst:298
408506
msgid "_PyEval_RequestCodeExtraIndex (C function)"
409507
msgstr "_PyEval_RequestCodeExtraIndex (C 函数)"
410508

411-
#: ../../c-api/code.rst:255
509+
#: ../../c-api/code.rst:316
412510
msgid "_PyCode_GetExtra (C function)"
413511
msgstr "_PyCode_GetExtra (C 函数)"
414512

415-
#: ../../c-api/code.rst:270
513+
#: ../../c-api/code.rst:331
416514
msgid "_PyCode_SetExtra (C function)"
417515
msgstr "_PyCode_SetExtra (C 函数)"

c-api/veryhigh.po

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 15:00+0000\n"
14+
"POT-Creation-Date: 2025-08-03 14:51+0000\n"
1515
"PO-Revision-Date: 2025-07-18 19:21+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -491,11 +491,13 @@ msgstr ""
491491
"请参阅 :py:mod:`!ast` Python 模块文档中的 :ref:`编译器旗标 <ast-compiler-"
492492
"flags>`,它们会将这些常量以相同的名称导出。"
493493

494-
#: ../../c-api/veryhigh.rst:366
494+
#: ../../c-api/veryhigh.rst:364
495495
msgid ""
496-
"This bit can be set in *flags* to cause division operator ``/`` to be "
497-
"interpreted as \"true division\" according to :pep:`238`."
498-
msgstr "这个标志位可在 *flags* 中设置以使得除法运算符 ``/`` 被解读为 :pep:`238` 所规定的“真除法”。"
496+
"The \"``PyCF``\" flags above can be combined with \"``CO_FUTURE``\" flags "
497+
"such as :c:macro:`CO_FUTURE_ANNOTATIONS` to enable features normally "
498+
"selectable using :ref:`future statements <future>`. See "
499+
":ref:`c_codeobject_flags` for a complete list."
500+
msgstr ""
499501

500502
#: ../../c-api/veryhigh.rst:301 ../../c-api/veryhigh.rst:309
501503
#: ../../c-api/veryhigh.rst:318

0 commit comments

Comments
 (0)