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