Skip to content

Commit cdfb667

Browse files
[po] auto sync
1 parent 0bd52da commit cdfb667

29 files changed

+3826
-4437
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.23%", "updated_at": "2025-07-11T10:14:32Z"}
1+
{"translation": "81.00%", "updated_at": "2025-07-11T15:14:22Z"}

c-api/code.po

Lines changed: 127 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Rafael Fontenelle <rffontenelle@gmail.com>, 2024
87
# Xu Siyuan, 2024
98
# Alpha Du <alphanow@gmail.com>, 2024
109
# CommonZ <zyyzcode@outlook.com>, 2024
1110
# Freesand Leo <yuqinju@163.com>, 2025
11+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
1212
#
1313
#, fuzzy
1414
msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.14\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2025-06-13 14:21+0000\n"
18+
"POT-Creation-Date: 2025-07-11 14:21+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
20-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
20+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -298,30 +298,136 @@ msgstr ""
298298
"在进入回调时可能已经设置了尚未处理的异常。 在此情况下,回调应当返回 ``0`` 并仍然设置同样的异常。 这意味着该回调可能不会调用任何其他可设置异常的"
299299
" API 除非它先保存并清空异常状态,并在返回之前恢复它。"
300300

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

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

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

319-
#: ../../c-api/code.rst:227
425+
#: ../../c-api/code.rst:292
320426
msgid ""
321427
"Return a new an opaque index value used to adding data to code objects."
322428
msgstr "返回一个新的不透明索引值用于向代码对象添加数据。"
323429

324-
#: ../../c-api/code.rst:229
430+
#: ../../c-api/code.rst:294
325431
msgid ""
326432
"You generally call this function once (per interpreter) and use the result "
327433
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
@@ -330,7 +436,7 @@ msgstr ""
330436
"通常情况下(对于每个解释器)你只需调用该函数一次然后将调用结果与 ``PyCode_GetExtra`` 和 ``PyCode_SetExtra`` "
331437
"一起使用以操作单个代码对象上的数据。"
332438

333-
#: ../../c-api/code.rst:233
439+
#: ../../c-api/code.rst:298
334440
msgid ""
335441
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be"
336442
" called on non-``NULL`` data stored under the new index. Use "
@@ -339,50 +445,50 @@ msgstr ""
339445
"如果 *free* 没有不为 ``NULL``: 当代码对象被释放时,*free* 将在存储于新索引下的非 ``NULL`` 数据上被调用。 当存储 "
340446
":c:type:`PyObject` 时使用 :c:func:`Py_DecRef`。"
341447

342-
#: ../../c-api/code.rst:239
448+
#: ../../c-api/code.rst:304
343449
msgid "as ``_PyEval_RequestCodeExtraIndex``"
344450
msgstr "作为 ``_PyEval_RequestCodeExtraIndex``"
345451

346-
#: ../../c-api/code.rst:243
452+
#: ../../c-api/code.rst:308
347453
msgid ""
348454
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
349455
"is deprecated, but will be available until the API changes."
350456
msgstr ""
351457
"重命名为 ``PyUnstable_Eval_RequestCodeExtraIndex``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
352458

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

359-
#: ../../c-api/code.rst:252
465+
#: ../../c-api/code.rst:317
360466
msgid ""
361467
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
362468
"without setting an exception."
363469
msgstr "如果未在索引下设置数据,则将 *extra* 设为 ``NULL`` 并返回 0 而不设置异常。"
364470

365-
#: ../../c-api/code.rst:257
471+
#: ../../c-api/code.rst:322
366472
msgid "as ``_PyCode_GetExtra``"
367473
msgstr "作为 ``_PyCode_GetExtra``"
368474

369-
#: ../../c-api/code.rst:261
475+
#: ../../c-api/code.rst:326
370476
msgid ""
371477
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated,"
372478
" but will be available until the API changes."
373479
msgstr "重命名为 ``PyUnstable_Code_GetExtra``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
374480

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

381-
#: ../../c-api/code.rst:272
487+
#: ../../c-api/code.rst:337
382488
msgid "as ``_PyCode_SetExtra``"
383489
msgstr "作为 ``_PyCode_SetExtra``"
384490

385-
#: ../../c-api/code.rst:276
491+
#: ../../c-api/code.rst:341
386492
msgid ""
387493
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated,"
388494
" but will be available until the API changes."
@@ -408,14 +514,14 @@ msgstr "PyCode_New (C 函数)"
408514
msgid "PyCode_NewWithPosOnlyArgs (C function)"
409515
msgstr "PyCode_NewWithPosOnlyArgs (C 函数)"
410516

411-
#: ../../c-api/code.rst:237
517+
#: ../../c-api/code.rst:302
412518
msgid "_PyEval_RequestCodeExtraIndex (C function)"
413519
msgstr "_PyEval_RequestCodeExtraIndex (C 函数)"
414520

415-
#: ../../c-api/code.rst:255
521+
#: ../../c-api/code.rst:320
416522
msgid "_PyCode_GetExtra (C function)"
417523
msgstr "_PyCode_GetExtra (C 函数)"
418524

419-
#: ../../c-api/code.rst:270
525+
#: ../../c-api/code.rst:335
420526
msgid "_PyCode_SetExtra (C function)"
421527
msgstr "_PyCode_SetExtra (C 函数)"

0 commit comments

Comments
 (0)