@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.14\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2025-07-11 14:21 +0000\n "
14
+ "POT-Creation-Date : 2025-10-09 14:15 +0000\n "
15
15
"PO-Revision-Date : 2025-09-16 00:00+0000\n "
16
16
"Last-Translator : python-doc bot, 2025\n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -268,40 +268,38 @@ msgid ""
268
268
"Execute Python source code from *str* in the context specified by the "
269
269
"objects *globals* and *locals* with the compiler flags specified by *flags*."
270
270
" *globals* must be a dictionary; *locals* can be any object that implements"
271
- " the mapping protocol. The parameter *start* specifies the start token that"
272
- " should be used to parse the source code."
271
+ " the mapping protocol. The parameter *start* specifies the start symbol and"
272
+ " must one of the following: :c:data:`Py_eval_input`, "
273
+ ":c:data:`Py_file_input`, or :c:data:`Py_single_input`."
273
274
msgstr ""
274
- "在由对象 *globals* 和 *locals* 指定的上下文中执行来自 *str* 的 Python 源代码,并使用以 *flags* "
275
- "指定的编译器旗标。 *globals* 必须是一个字典;*locals* 可以是任何实现了映射协议的对象。 形参 *start* "
276
- "指定了应当被用来解析源代码的起始形符。"
277
275
278
- #: ../../c-api/veryhigh.rst:188
276
+ #: ../../c-api/veryhigh.rst:189
279
277
msgid ""
280
278
"Returns the result of executing the code as a Python object, or ``NULL`` if "
281
279
"an exception was raised."
282
280
msgstr "返回将代码作为 Python 对象执行的结果,或者如果引发了异常则返回 ``NULL``。"
283
281
284
- #: ../../c-api/veryhigh.rst:194
282
+ #: ../../c-api/veryhigh.rst:195
285
283
msgid ""
286
284
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
287
285
" *closeit* set to ``0`` and *flags* set to ``NULL``."
288
286
msgstr ""
289
287
"这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *closeit* 设为 ``0`` 并将 *flags* 设为"
290
288
" ``NULL``。"
291
289
292
- #: ../../c-api/veryhigh.rst:200
290
+ #: ../../c-api/veryhigh.rst:201
293
291
msgid ""
294
292
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
295
293
" *flags* set to ``NULL``."
296
294
msgstr "这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
297
295
298
- #: ../../c-api/veryhigh.rst:206
296
+ #: ../../c-api/veryhigh.rst:207
299
297
msgid ""
300
298
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
301
299
" *closeit* set to ``0``."
302
300
msgstr "这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *closeit* 设为 ``0``。"
303
301
304
- #: ../../c-api/veryhigh.rst:212
302
+ #: ../../c-api/veryhigh.rst:213
305
303
msgid ""
306
304
"Similar to :c:func:`PyRun_StringFlags`, but the Python source code is read "
307
305
"from *fp* instead of an in-memory string. *filename* should be the name of "
@@ -313,36 +311,32 @@ msgstr ""
313
311
"*filename* 应为文件名,它将使用 :term:`filesystem encoding and error handler` 来解码。 如果 "
314
312
"*closeit* 为真值,则文件将在 :c:func:`PyRun_FileExFlags` 返回之前被关闭。"
315
313
316
- #: ../../c-api/veryhigh.rst:221
314
+ #: ../../c-api/veryhigh.rst:222
317
315
msgid ""
318
316
"This is a simplified interface to :c:func:`Py_CompileStringFlags` below, "
319
317
"leaving *flags* set to ``NULL``."
320
318
msgstr "这是针对下面 :c:func:`Py_CompileStringFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
321
319
322
- #: ../../c-api/veryhigh.rst:227
320
+ #: ../../c-api/veryhigh.rst:228
323
321
msgid ""
324
322
"This is a simplified interface to :c:func:`Py_CompileStringExFlags` below, "
325
323
"with *optimize* set to ``-1``."
326
324
msgstr ""
327
325
"这是针对下面 :c:func:`Py_CompileStringExFlags` 的简化版接口,将 *optimize* 设为 ``-1``。"
328
326
329
- #: ../../c-api/veryhigh.rst:233
327
+ #: ../../c-api/veryhigh.rst:234
330
328
msgid ""
331
329
"Parse and compile the Python source code in *str*, returning the resulting "
332
- "code object. The start token is given by *start*; this can be used to "
330
+ "code object. The start symbol is given by *start*; this can be used to "
333
331
"constrain the code which can be compiled and should be "
334
332
":c:data:`Py_eval_input`, :c:data:`Py_file_input`, or "
335
333
":c:data:`Py_single_input`. The filename specified by *filename* is used to "
336
334
"construct the code object and may appear in tracebacks or :exc:`SyntaxError`"
337
335
" exception messages. This returns ``NULL`` if the code cannot be parsed or "
338
336
"compiled."
339
337
msgstr ""
340
- "解析并编译 *str* 中的 Python 源代码,返回结果代码对象。 开始形符由 *start* 给出;这可被用来约束可被编译的代码并且应当为 "
341
- ":c:data:`Py_eval_input`, :c:data:`Py_file_input` 或 "
342
- ":c:data:`Py_single_input`。 由 *filename* 指定的文件名会被用来构造代码对象并可能出现在回溯信息或 "
343
- ":exc:`SyntaxError` 异常消息中。 如果代码无法被解析或编译则此函数将返回 ``NULL``。"
344
338
345
- #: ../../c-api/veryhigh.rst:241
339
+ #: ../../c-api/veryhigh.rst:242
346
340
msgid ""
347
341
"The integer *optimize* specifies the optimization level of the compiler; a "
348
342
"value of ``-1`` selects the optimization level of the interpreter as given "
@@ -354,23 +348,23 @@ msgstr ""
354
348
"``0`` (无优化;``__debug__`` 为真值)、``1`` (断言被移除,``__debug__`` 为假值) 或 ``2`` "
355
349
"(文档字符串也被移除)。"
356
350
357
- #: ../../c-api/veryhigh.rst:252
351
+ #: ../../c-api/veryhigh.rst:253
358
352
msgid ""
359
353
"Like :c:func:`Py_CompileStringObject`, but *filename* is a byte string "
360
354
"decoded from the :term:`filesystem encoding and error handler`."
361
355
msgstr ""
362
356
"与 :c:func:`Py_CompileStringObject` 类似,但 *filename* 是以 :term:`filesystem "
363
357
"encoding and error handler` 解码出的字节串。"
364
358
365
- #: ../../c-api/veryhigh.rst:259
359
+ #: ../../c-api/veryhigh.rst:260
366
360
msgid ""
367
361
"This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the"
368
362
" code object, and global and local variables. The other arguments are set "
369
363
"to ``NULL``."
370
364
msgstr ""
371
365
"这是针对 :c:func:`PyEval_EvalCodeEx` 的简化版接口,只附带代码对象,以及全局和局部变量。 其他参数均设为 ``NULL``。"
372
366
373
- #: ../../c-api/veryhigh.rst:266
367
+ #: ../../c-api/veryhigh.rst:267
374
368
msgid ""
375
369
"Evaluate a precompiled code object, given a particular environment for its "
376
370
"evaluation. This environment consists of a dictionary of global variables, "
@@ -381,13 +375,13 @@ msgstr ""
381
375
"对一个预编译的代码对象求值,为其求值给出特定的环境。 此环境由全局变量的字典,局部变量映射对象,参数、关键字和默认值的数组,:ref:`仅限关键字 "
382
376
"<keyword-only_parameter>` 参数的默认值的字典和单元的封闭元组构成。"
383
377
384
- #: ../../c-api/veryhigh.rst:275
378
+ #: ../../c-api/veryhigh.rst:276
385
379
msgid ""
386
380
"Evaluate an execution frame. This is a simplified interface to "
387
381
":c:func:`PyEval_EvalFrameEx`, for backward compatibility."
388
382
msgstr "对一个执行帧求值。 这是针对 :c:func:`PyEval_EvalFrameEx` 的简化版接口,用于保持向下兼容性。"
389
383
390
- #: ../../c-api/veryhigh.rst:281
384
+ #: ../../c-api/veryhigh.rst:282
391
385
msgid ""
392
386
"This is the main, unvarnished function of Python interpretation. The code "
393
387
"object associated with the execution frame *f* is executed, interpreting "
@@ -400,25 +394,25 @@ msgstr ""
400
394
"*throwflag* 形参基本可以被忽略 —— 如果为真值,则会导致立即抛出一个异常;这会被用于生成器对象的 "
401
395
":meth:`~generator.throw` 方法。"
402
396
403
- #: ../../c-api/veryhigh.rst:288
397
+ #: ../../c-api/veryhigh.rst:289
404
398
msgid ""
405
399
"This function now includes a debug assertion to help ensure that it does not"
406
400
" silently discard an active exception."
407
401
msgstr "该函数现在包含一个调试断言,用以确保不会静默地丢弃活动的异常。"
408
402
409
- #: ../../c-api/veryhigh.rst:295
403
+ #: ../../c-api/veryhigh.rst:296
410
404
msgid ""
411
405
"This function changes the flags of the current evaluation frame, and returns"
412
406
" true on success, false on failure."
413
407
msgstr "此函数会修改当前求值帧的旗标,并在成功时返回真值,失败时返回假值。"
414
408
415
- #: ../../c-api/veryhigh.rst:303
409
+ #: ../../c-api/veryhigh.rst:304
416
410
msgid ""
417
411
"The start symbol from the Python grammar for isolated expressions; for use "
418
412
"with :c:func:`Py_CompileString`."
419
413
msgstr "Python 语法中用于孤立表达式的起始符号;配合 :c:func:`Py_CompileString` 使用。"
420
414
421
- #: ../../c-api/veryhigh.rst:311
415
+ #: ../../c-api/veryhigh.rst:312
422
416
msgid ""
423
417
"The start symbol from the Python grammar for sequences of statements as read"
424
418
" from a file or other source; for use with :c:func:`Py_CompileString`. This"
@@ -427,15 +421,15 @@ msgstr ""
427
421
"Python 语法中用于从文件或其他源读取语句序列的起始符号;配合 :c:func:`Py_CompileString` 使用。 这是在编译任意长的 "
428
422
"Python 源代码时要使用的符号。"
429
423
430
- #: ../../c-api/veryhigh.rst:320
424
+ #: ../../c-api/veryhigh.rst:321
431
425
msgid ""
432
426
"The start symbol from the Python grammar for a single statement; for use "
433
427
"with :c:func:`Py_CompileString`. This is the symbol used for the interactive"
434
428
" interpreter loop."
435
429
msgstr ""
436
430
"Python 语法中用于单独语句的起始符号;配合 :c:func:`Py_CompileString` 使用。 这是用于交互式解释器循环的符号。"
437
431
438
- #: ../../c-api/veryhigh.rst:327
432
+ #: ../../c-api/veryhigh.rst:328
439
433
msgid ""
440
434
"This is the structure used to hold compiler flags. In cases where code is "
441
435
"only being compiled, it is passed as ``int flags``, and in cases where code "
@@ -446,7 +440,7 @@ msgstr ""
446
440
"``PyCompilerFlags *flags`` 传入。 在这种情况下,``from __future__ import`` 可以修改 "
447
441
"*flags*。"
448
442
449
- #: ../../c-api/veryhigh.rst:332
443
+ #: ../../c-api/veryhigh.rst:333
450
444
msgid ""
451
445
"Whenever ``PyCompilerFlags *flags`` is ``NULL``, "
452
446
":c:member:`~PyCompilerFlags.cf_flags` is treated as equal to ``0``, and any "
@@ -456,33 +450,33 @@ msgstr ""
456
450
"``NULL``,:c:member:`~PyCompilerFlags.cf_flags` 就会被视为等同于 ``0``,而由于 ``from "
457
451
"__future__ import`` 而产生的任何修改都会被丢弃。"
458
452
459
- #: ../../c-api/veryhigh.rst:338
453
+ #: ../../c-api/veryhigh.rst:339
460
454
msgid "Compiler flags."
461
455
msgstr "编译器旗标。"
462
456
463
- #: ../../c-api/veryhigh.rst:342
457
+ #: ../../c-api/veryhigh.rst:343
464
458
msgid ""
465
459
"*cf_feature_version* is the minor Python version. It should be initialized "
466
460
"to ``PY_MINOR_VERSION``."
467
461
msgstr "*cf_feature_version* 是 Python 的小版本号。 它应当被初始化为 ``PY_MINOR_VERSION``。"
468
462
469
- #: ../../c-api/veryhigh.rst:345
463
+ #: ../../c-api/veryhigh.rst:346
470
464
msgid ""
471
465
"The field is ignored by default, it is used if and only if ``PyCF_ONLY_AST``"
472
466
" flag is set in :c:member:`~PyCompilerFlags.cf_flags`."
473
467
msgstr ""
474
468
"该字段默认会被忽略,当且仅当在 :c:member:`~PyCompilerFlags.cf_flags` 中设置了 ``PyCF_ONLY_AST``"
475
469
" 旗标时它才会被使用。"
476
470
477
- #: ../../c-api/veryhigh.rst:348
471
+ #: ../../c-api/veryhigh.rst:349
478
472
msgid "Added *cf_feature_version* field."
479
473
msgstr "增加了 *cf_feature_version* 字段。"
480
474
481
- #: ../../c-api/veryhigh.rst:351
475
+ #: ../../c-api/veryhigh.rst:352
482
476
msgid "The available compiler flags are accessible as macros:"
483
477
msgstr "现有的编译器旗标可作为宏来使用:"
484
478
485
- #: ../../c-api/veryhigh.rst:360
479
+ #: ../../c-api/veryhigh.rst:361
486
480
msgid ""
487
481
"See :ref:`compiler flags <ast-compiler-flags>` in documentation of the "
488
482
":py:mod:`!ast` Python module, which exports these constants under the same "
@@ -491,7 +485,7 @@ msgstr ""
491
485
"请参阅 :py:mod:`!ast` Python 模块文档中的 :ref:`编译器旗标 <ast-compiler-"
492
486
"flags>`,它们会将这些常量以相同的名称导出。"
493
487
494
- #: ../../c-api/veryhigh.rst:364
488
+ #: ../../c-api/veryhigh.rst:365
495
489
msgid ""
496
490
"The \" ``PyCF``\" flags above can be combined with \" ``CO_FUTURE``\" flags "
497
491
"such as :c:macro:`CO_FUTURE_ANNOTATIONS` to enable features normally "
@@ -502,7 +496,7 @@ msgstr ""
502
496
" 组合使用,以启用通常通过 :ref:`future 语句 <future>` 选择的功能特性。 完整标志列表请参见 "
503
497
":ref:`c_codeobject_flags`。"
504
498
505
- #: ../../c-api/veryhigh.rst:301 ../../c-api/veryhigh.rst:309
506
- #: ../../c-api/veryhigh.rst:318
499
+ #: ../../c-api/veryhigh.rst:302 ../../c-api/veryhigh.rst:310
500
+ #: ../../c-api/veryhigh.rst:319
507
501
msgid "Py_CompileString (C function)"
508
502
msgstr "Py_CompileString (C 函数)"
0 commit comments