4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Rafael Fontenelle <rffontenelle@gmail.com>, 2024
8
7
# Xu Siyuan, 2024
9
8
# Alpha Du <alphanow@gmail.com>, 2024
10
9
# CommonZ <zyyzcode@outlook.com>, 2024
11
10
# Freesand Leo <yuqinju@163.com>, 2025
11
+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2025
12
12
#
13
13
#, fuzzy
14
14
msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.14\n "
17
17
"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 "
19
19
"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 "
21
21
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
22
22
"MIME-Version : 1.0\n "
23
23
"Content-Type : text/plain; charset=UTF-8\n "
@@ -298,30 +298,136 @@ msgstr ""
298
298
"在进入回调时可能已经设置了尚未处理的异常。 在此情况下,回调应当返回 ``0`` 并仍然设置同样的异常。 这意味着该回调可能不会调用任何其他可设置异常的"
299
299
" API 除非它先保存并清空异常状态,并在返回之前恢复它。"
300
300
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
302
408
msgid "Extra information"
303
409
msgstr "附加信息"
304
410
305
- #: ../../c-api/code.rst:217
411
+ #: ../../c-api/code.rst:282
306
412
msgid ""
307
413
"To support low-level extensions to frame evaluation, such as external just-"
308
414
"in-time compilers, it is possible to attach arbitrary extra data to code "
309
415
"objects."
310
416
msgstr "为了支持对帧求值的低层级扩展,如外部即时编译器等,可以在代码对象上附加任意的额外数据。"
311
417
312
- #: ../../c-api/code.rst:221
418
+ #: ../../c-api/code.rst:286
313
419
msgid ""
314
420
"These functions are part of the unstable C API tier: this functionality is a"
315
421
" CPython implementation detail, and the API may change without deprecation "
316
422
"warnings."
317
423
msgstr "这些函数是不稳定 C API 层的一部分:该功能是 CPython 的实现细节,此 API 可能随时改变而不发出弃用警告。"
318
424
319
- #: ../../c-api/code.rst:227
425
+ #: ../../c-api/code.rst:292
320
426
msgid ""
321
427
"Return a new an opaque index value used to adding data to code objects."
322
428
msgstr "返回一个新的不透明索引值用于向代码对象添加数据。"
323
429
324
- #: ../../c-api/code.rst:229
430
+ #: ../../c-api/code.rst:294
325
431
msgid ""
326
432
"You generally call this function once (per interpreter) and use the result "
327
433
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
@@ -330,7 +436,7 @@ msgstr ""
330
436
"通常情况下(对于每个解释器)你只需调用该函数一次然后将调用结果与 ``PyCode_GetExtra`` 和 ``PyCode_SetExtra`` "
331
437
"一起使用以操作单个代码对象上的数据。"
332
438
333
- #: ../../c-api/code.rst:233
439
+ #: ../../c-api/code.rst:298
334
440
msgid ""
335
441
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be"
336
442
" called on non-``NULL`` data stored under the new index. Use "
@@ -339,50 +445,50 @@ msgstr ""
339
445
"如果 *free* 没有不为 ``NULL``: 当代码对象被释放时,*free* 将在存储于新索引下的非 ``NULL`` 数据上被调用。 当存储 "
340
446
":c:type:`PyObject` 时使用 :c:func:`Py_DecRef`。"
341
447
342
- #: ../../c-api/code.rst:239
448
+ #: ../../c-api/code.rst:304
343
449
msgid "as ``_PyEval_RequestCodeExtraIndex``"
344
450
msgstr "作为 ``_PyEval_RequestCodeExtraIndex``"
345
451
346
- #: ../../c-api/code.rst:243
452
+ #: ../../c-api/code.rst:308
347
453
msgid ""
348
454
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
349
455
"is deprecated, but will be available until the API changes."
350
456
msgstr ""
351
457
"重命名为 ``PyUnstable_Eval_RequestCodeExtraIndex``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
352
458
353
- #: ../../c-api/code.rst:249
459
+ #: ../../c-api/code.rst:314
354
460
msgid ""
355
461
"Set *extra* to the extra data stored under the given index. Return 0 on "
356
462
"success. Set an exception and return -1 on failure."
357
463
msgstr "将 *extra* 设为存储在给定索引下的额外数据。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
358
464
359
- #: ../../c-api/code.rst:252
465
+ #: ../../c-api/code.rst:317
360
466
msgid ""
361
467
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
362
468
"without setting an exception."
363
469
msgstr "如果未在索引下设置数据,则将 *extra* 设为 ``NULL`` 并返回 0 而不设置异常。"
364
470
365
- #: ../../c-api/code.rst:257
471
+ #: ../../c-api/code.rst:322
366
472
msgid "as ``_PyCode_GetExtra``"
367
473
msgstr "作为 ``_PyCode_GetExtra``"
368
474
369
- #: ../../c-api/code.rst:261
475
+ #: ../../c-api/code.rst:326
370
476
msgid ""
371
477
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated,"
372
478
" but will be available until the API changes."
373
479
msgstr "重命名为 ``PyUnstable_Code_GetExtra``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
374
480
375
- #: ../../c-api/code.rst:267
481
+ #: ../../c-api/code.rst:332
376
482
msgid ""
377
483
"Set the extra data stored under the given index to *extra*. Return 0 on "
378
484
"success. Set an exception and return -1 on failure."
379
485
msgstr "将存储在给定索引下的额外数据设为 *extra*。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
380
486
381
- #: ../../c-api/code.rst:272
487
+ #: ../../c-api/code.rst:337
382
488
msgid "as ``_PyCode_SetExtra``"
383
489
msgstr "作为 ``_PyCode_SetExtra``"
384
490
385
- #: ../../c-api/code.rst:276
491
+ #: ../../c-api/code.rst:341
386
492
msgid ""
387
493
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated,"
388
494
" but will be available until the API changes."
@@ -408,14 +514,14 @@ msgstr "PyCode_New (C 函数)"
408
514
msgid "PyCode_NewWithPosOnlyArgs (C function)"
409
515
msgstr "PyCode_NewWithPosOnlyArgs (C 函数)"
410
516
411
- #: ../../c-api/code.rst:237
517
+ #: ../../c-api/code.rst:302
412
518
msgid "_PyEval_RequestCodeExtraIndex (C function)"
413
519
msgstr "_PyEval_RequestCodeExtraIndex (C 函数)"
414
520
415
- #: ../../c-api/code.rst:255
521
+ #: ../../c-api/code.rst:320
416
522
msgid "_PyCode_GetExtra (C function)"
417
523
msgstr "_PyCode_GetExtra (C 函数)"
418
524
419
- #: ../../c-api/code.rst:270
525
+ #: ../../c-api/code.rst:335
420
526
msgid "_PyCode_SetExtra (C function)"
421
527
msgstr "_PyCode_SetExtra (C 函数)"
0 commit comments