55#
66# Translators:
77# python-doc bot, 2025
8+ # Freesand Leo <yuqinju@163.com>, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.13\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-10-27 15:03 +0000\n "
15+ "POT-Creation-Date : 2025-11-15 15:00 +0000\n "
1516"PO-Revision-Date : 2025-09-15 01:03+0000\n "
16- "Last-Translator : python-doc bot , 2025\n "
17+ "Last-Translator : Freesand Leo <yuqinju@163.com> , 2025\n "
1718"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1819"MIME-Version : 1.0\n "
1920"Content-Type : text/plain; charset=UTF-8\n "
@@ -294,11 +295,25 @@ msgstr ""
294295"在进入回调时可能已经设置了尚未处理的异常。 在此情况下,回调应当返回 ``0`` 并仍然设置同样的异常。 这意味着该回调可能不会调用任何其他可设置异常的"
295296" API 除非它先保存并清空异常状态,并在返回之前恢复它。"
296297
297- #: ../../c-api/code.rst:217
298+ #: ../../c-api/code.rst:216
299+ msgid "This is a :term:`soft deprecated` function that does nothing."
300+ msgstr ""
301+
302+ #: ../../c-api/code.rst:218
303+ msgid ""
304+ "Prior to Python 3.10, this function would perform basic optimizations to a "
305+ "code object."
306+ msgstr ""
307+
308+ #: ../../c-api/code.rst:221
309+ msgid "This function now does nothing."
310+ msgstr "此函数现在不执行任何操作。"
311+
312+ #: ../../c-api/code.rst:228
298313msgid "Code Object Flags"
299314msgstr "代码对象标志"
300315
301- #: ../../c-api/code.rst:219
316+ #: ../../c-api/code.rst:230
302317msgid ""
303318"Code objects contain a bit-field of flags, which can be retrieved as the "
304319":attr:`~codeobject.co_flags` Python attribute (for example using "
@@ -309,7 +324,7 @@ msgstr ""
309324":c:func:`PyObject_GetAttrString`),并通过 *flags* 参数设置 "
310325":c:func:`PyUnstable_Code_New` 及类似函数。"
311326
312- #: ../../c-api/code.rst:224
327+ #: ../../c-api/code.rst:235
313328msgid ""
314329"Flags whose names start with ``CO_FUTURE_`` correspond to features normally "
315330"selectable by :ref:`future statements <future>`. These flags can be used in "
@@ -320,107 +335,109 @@ msgstr ""
320335":c:member:`PyCompilerFlags.cf_flags` 中使用。请注意,许多 ``CO_FUTURE_`` 标志在当前版本的 "
321336"Python 中是强制性的,设置它们没有效果。"
322337
323- #: ../../c-api/code.rst:230
338+ #: ../../c-api/code.rst:241
324339msgid ""
325340"The following flags are available. For their meaning, see the linked "
326341"documentation of their Python equivalents."
327342msgstr "以下是可用的标志位。有关其具体含义,请参阅对应Python原生标志位的官方文档说明。"
328343
329- #: ../../c-api/code.rst:238
344+ #: ../../c-api/code.rst:249
330345msgid "Flag"
331346msgstr "标志位"
332347
333- #: ../../c-api/code.rst:239
348+ #: ../../c-api/code.rst:250
334349msgid "Meaning"
335350msgstr "含意"
336351
337- #: ../../c-api/code.rst:241
352+ #: ../../c-api/code.rst:252
338353msgid ":py:data:`inspect.CO_OPTIMIZED`"
339354msgstr ":py:data:`inspect.CO_OPTIMIZED`"
340355
341- #: ../../c-api/code.rst:243
356+ #: ../../c-api/code.rst:254
342357msgid ":py:data:`inspect.CO_NEWLOCALS`"
343358msgstr ":py:data:`inspect.CO_NEWLOCALS`"
344359
345- #: ../../c-api/code.rst:245
360+ #: ../../c-api/code.rst:256
346361msgid ":py:data:`inspect.CO_VARARGS`"
347362msgstr ":py:data:`inspect.CO_VARARGS`"
348363
349- #: ../../c-api/code.rst:247
364+ #: ../../c-api/code.rst:258
350365msgid ":py:data:`inspect.CO_VARKEYWORDS`"
351366msgstr ":py:data:`inspect.CO_VARKEYWORDS`"
352367
353- #: ../../c-api/code.rst:249
368+ #: ../../c-api/code.rst:260
354369msgid ":py:data:`inspect.CO_NESTED`"
355370msgstr ":py:data:`inspect.CO_NESTED`"
356371
357- #: ../../c-api/code.rst:251
372+ #: ../../c-api/code.rst:262
358373msgid ":py:data:`inspect.CO_GENERATOR`"
359374msgstr ":py:data:`inspect.CO_GENERATOR`"
360375
361- #: ../../c-api/code.rst:253
376+ #: ../../c-api/code.rst:264
362377msgid ":py:data:`inspect.CO_COROUTINE`"
363378msgstr ":py:data:`inspect.CO_COROUTINE`"
364379
365- #: ../../c-api/code.rst:255
380+ #: ../../c-api/code.rst:266
366381msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
367382msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
368383
369- #: ../../c-api/code.rst:257
384+ #: ../../c-api/code.rst:268
370385msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
371386msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"
372387
373- #: ../../c-api/code.rst:260
388+ #: ../../c-api/code.rst:271
374389msgid "no effect (:py:data:`__future__.division`)"
375390msgstr "无效果 (:py:data:`__future__.division`)"
376391
377- #: ../../c-api/code.rst:262
392+ #: ../../c-api/code.rst:273
378393msgid "no effect (:py:data:`__future__.absolute_import`)"
379394msgstr "无效果 (:py:data:`__future__.absolute_import`)"
380395
381- #: ../../c-api/code.rst:264
396+ #: ../../c-api/code.rst:275
382397msgid "no effect (:py:data:`__future__.with_statement`)"
383398msgstr "无效果 (:py:data:`__future__.with_statement`)"
384399
385- #: ../../c-api/code.rst:266
400+ #: ../../c-api/code.rst:277
386401msgid "no effect (:py:data:`__future__.print_function`)"
387402msgstr "无效果 (:py:data:`__future__.print_function`)"
388403
389- #: ../../c-api/code.rst:268
404+ #: ../../c-api/code.rst:279
390405msgid "no effect (:py:data:`__future__.unicode_literals`)"
391406msgstr "无效果 (:py:data:`__future__.unicode_literals`)"
392407
393- #: ../../c-api/code.rst:270
408+ #: ../../c-api/code.rst:281
394409msgid "no effect (:py:data:`__future__.generator_stop`)"
395410msgstr "无效果 (:py:data:`__future__.generator_stop`)"
396411
397- #: ../../c-api/code.rst:272
412+ #: ../../c-api/code.rst:283
398413msgid ":py:data:`__future__.annotations`"
399414msgstr ":py:data:`__future__.annotations`"
400415
401- #: ../../c-api/code.rst:276
416+ #: ../../c-api/code.rst:287
402417msgid "Extra information"
403418msgstr "附加信息"
404419
405- #: ../../c-api/code.rst:278
420+ #: ../../c-api/code.rst:289
406421msgid ""
407422"To support low-level extensions to frame evaluation, such as external just-"
408423"in-time compilers, it is possible to attach arbitrary extra data to code "
409424"objects."
410425msgstr "为了支持对帧求值的低层级扩展,如外部即时编译器等,可以在代码对象上附加任意的额外数据。"
411426
412- #: ../../c-api/code.rst:282
427+ #: ../../c-api/code.rst:293
413428msgid ""
414429"These functions are part of the unstable C API tier: this functionality is a"
415430" CPython implementation detail, and the API may change without deprecation "
416431"warnings."
417432msgstr "这些函数是不稳定 C API 层的一部分:该功能是 CPython 的实现细节,此 API 可能随时改变而不发出弃用警告。"
418433
419- #: ../../c-api/code.rst:288
434+ #: ../../c-api/code.rst:299
420435msgid "Return a new opaque index value used to adding data to code objects."
421436msgstr ""
437+ "返回一个新的不透明索引值用于向代码对象添加数据。Return a new opaque index value used to adding data "
438+ "to code objects."
422439
423- #: ../../c-api/code.rst:290
440+ #: ../../c-api/code.rst:301
424441msgid ""
425442"You generally call this function once (per interpreter) and use the result "
426443"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
@@ -429,7 +446,7 @@ msgstr ""
429446"通常情况下(对于每个解释器)你只需调用该函数一次然后将调用结果与 ``PyCode_GetExtra`` 和 ``PyCode_SetExtra`` "
430447"一起使用以操作单个代码对象上的数据。"
431448
432- #: ../../c-api/code.rst:294
449+ #: ../../c-api/code.rst:305
433450msgid ""
434451"If *free* is not ``NULL``: when a code object is deallocated, *free* will be"
435452" called on non-``NULL`` data stored under the new index. Use "
@@ -438,50 +455,50 @@ msgstr ""
438455"如果 *free* 没有不为 ``NULL``: 当代码对象被释放时,*free* 将在存储于新索引下的非 ``NULL`` 数据上被调用。 当存储 "
439456":c:type:`PyObject` 时使用 :c:func:`Py_DecRef`。"
440457
441- #: ../../c-api/code.rst:300
458+ #: ../../c-api/code.rst:311
442459msgid "as ``_PyEval_RequestCodeExtraIndex``"
443460msgstr "作为 ``_PyEval_RequestCodeExtraIndex``"
444461
445- #: ../../c-api/code.rst:304
462+ #: ../../c-api/code.rst:315
446463msgid ""
447464"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
448465"is deprecated, but will be available until the API changes."
449466msgstr ""
450467"重命名为 ``PyUnstable_Eval_RequestCodeExtraIndex``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
451468
452- #: ../../c-api/code.rst:310
469+ #: ../../c-api/code.rst:321
453470msgid ""
454471"Set *extra* to the extra data stored under the given index. Return 0 on "
455472"success. Set an exception and return -1 on failure."
456473msgstr "将 *extra* 设为存储在给定索引下的额外数据。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
457474
458- #: ../../c-api/code.rst:313
475+ #: ../../c-api/code.rst:324
459476msgid ""
460477"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
461478"without setting an exception."
462479msgstr "如果未在索引下设置数据,则将 *extra* 设为 ``NULL`` 并返回 0 而不设置异常。"
463480
464- #: ../../c-api/code.rst:318
481+ #: ../../c-api/code.rst:329
465482msgid "as ``_PyCode_GetExtra``"
466483msgstr "作为 ``_PyCode_GetExtra``"
467484
468- #: ../../c-api/code.rst:322
485+ #: ../../c-api/code.rst:333
469486msgid ""
470487"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated,"
471488" but will be available until the API changes."
472489msgstr "重命名为 ``PyUnstable_Code_GetExtra``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
473490
474- #: ../../c-api/code.rst:328
491+ #: ../../c-api/code.rst:339
475492msgid ""
476493"Set the extra data stored under the given index to *extra*. Return 0 on "
477494"success. Set an exception and return -1 on failure."
478495msgstr "将存储在给定索引下的额外数据设为 *extra*。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
479496
480- #: ../../c-api/code.rst:333
497+ #: ../../c-api/code.rst:344
481498msgid "as ``_PyCode_SetExtra``"
482499msgstr "作为 ``_PyCode_SetExtra``"
483500
484- #: ../../c-api/code.rst:337
501+ #: ../../c-api/code.rst:348
485502msgid ""
486503"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated,"
487504" but will be available until the API changes."
@@ -507,14 +524,14 @@ msgstr "PyCode_New (C 函数)"
507524msgid "PyCode_NewWithPosOnlyArgs (C function)"
508525msgstr "PyCode_NewWithPosOnlyArgs (C 函数)"
509526
510- #: ../../c-api/code.rst:298
527+ #: ../../c-api/code.rst:309
511528msgid "_PyEval_RequestCodeExtraIndex (C function)"
512529msgstr "_PyEval_RequestCodeExtraIndex (C 函数)"
513530
514- #: ../../c-api/code.rst:316
531+ #: ../../c-api/code.rst:327
515532msgid "_PyCode_GetExtra (C function)"
516533msgstr "_PyCode_GetExtra (C 函数)"
517534
518- #: ../../c-api/code.rst:331
535+ #: ../../c-api/code.rst:342
519536msgid "_PyCode_SetExtra (C function)"
520537msgstr "_PyCode_SetExtra (C 函数)"
0 commit comments