Skip to content

Commit 9149605

Browse files
[po] auto sync
1 parent 2aa3c1a commit 9149605

37 files changed

+18905
-18117
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.84%", "updated_at": "2025-10-09T08:16:45Z"}
1+
{"translation": "99.47%", "updated_at": "2025-10-09T15:32:42Z"}

c-api/init.po

Lines changed: 283 additions & 267 deletions
Large diffs are not rendered by default.

c-api/unicode.po

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-06-13 14:21+0000\n"
14+
"POT-Creation-Date: 2025-10-09 14:15+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1078,12 +1078,10 @@ msgstr ""
10781078
#: ../../c-api/unicode.rst:733
10791079
msgid ""
10801080
"This function checks that *unicode* is a Unicode object, that the index is "
1081-
"not out of bounds, and that the object's reference count is one). See "
1081+
"not out of bounds, and that the object's reference count is one. See "
10821082
":c:func:`PyUnicode_WRITE` for a version that skips these checks, making them"
10831083
" your responsibility."
10841084
msgstr ""
1085-
"此函数会检查 *unicode* 是否为 Unicode 对象、索引是否越界,以及该对象的引用计数是否为 "
1086-
"1。若需跳过这些检查(此时您需自行承担相关责任),请参阅 :c:func:`PyUnicode_WRITE`。"
10871085

10881086
#: ../../c-api/unicode.rst:746
10891087
msgid ""

c-api/veryhigh.po

Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"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"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -268,40 +268,38 @@ msgid ""
268268
"Execute Python source code from *str* in the context specified by the "
269269
"objects *globals* and *locals* with the compiler flags specified by *flags*."
270270
" *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`."
273274
msgstr ""
274-
"在由对象 *globals* 和 *locals* 指定的上下文中执行来自 *str* 的 Python 源代码,并使用以 *flags* "
275-
"指定的编译器旗标。 *globals* 必须是一个字典;*locals* 可以是任何实现了映射协议的对象。 形参 *start* "
276-
"指定了应当被用来解析源代码的起始形符。"
277275

278-
#: ../../c-api/veryhigh.rst:188
276+
#: ../../c-api/veryhigh.rst:189
279277
msgid ""
280278
"Returns the result of executing the code as a Python object, or ``NULL`` if "
281279
"an exception was raised."
282280
msgstr "返回将代码作为 Python 对象执行的结果,或者如果引发了异常则返回 ``NULL``。"
283281

284-
#: ../../c-api/veryhigh.rst:194
282+
#: ../../c-api/veryhigh.rst:195
285283
msgid ""
286284
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
287285
" *closeit* set to ``0`` and *flags* set to ``NULL``."
288286
msgstr ""
289287
"这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *closeit* 设为 ``0`` 并将 *flags* 设为"
290288
" ``NULL``。"
291289

292-
#: ../../c-api/veryhigh.rst:200
290+
#: ../../c-api/veryhigh.rst:201
293291
msgid ""
294292
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
295293
" *flags* set to ``NULL``."
296294
msgstr "这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
297295

298-
#: ../../c-api/veryhigh.rst:206
296+
#: ../../c-api/veryhigh.rst:207
299297
msgid ""
300298
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving"
301299
" *closeit* set to ``0``."
302300
msgstr "这是针对下面 :c:func:`PyRun_FileExFlags` 的简化版接口,将 *closeit* 设为 ``0``。"
303301

304-
#: ../../c-api/veryhigh.rst:212
302+
#: ../../c-api/veryhigh.rst:213
305303
msgid ""
306304
"Similar to :c:func:`PyRun_StringFlags`, but the Python source code is read "
307305
"from *fp* instead of an in-memory string. *filename* should be the name of "
@@ -313,36 +311,32 @@ msgstr ""
313311
"*filename* 应为文件名,它将使用 :term:`filesystem encoding and error handler` 来解码。 如果 "
314312
"*closeit* 为真值,则文件将在 :c:func:`PyRun_FileExFlags` 返回之前被关闭。"
315313

316-
#: ../../c-api/veryhigh.rst:221
314+
#: ../../c-api/veryhigh.rst:222
317315
msgid ""
318316
"This is a simplified interface to :c:func:`Py_CompileStringFlags` below, "
319317
"leaving *flags* set to ``NULL``."
320318
msgstr "这是针对下面 :c:func:`Py_CompileStringFlags` 的简化版接口,将 *flags* 设为 ``NULL``。"
321319

322-
#: ../../c-api/veryhigh.rst:227
320+
#: ../../c-api/veryhigh.rst:228
323321
msgid ""
324322
"This is a simplified interface to :c:func:`Py_CompileStringExFlags` below, "
325323
"with *optimize* set to ``-1``."
326324
msgstr ""
327325
"这是针对下面 :c:func:`Py_CompileStringExFlags` 的简化版接口,将 *optimize* 设为 ``-1``。"
328326

329-
#: ../../c-api/veryhigh.rst:233
327+
#: ../../c-api/veryhigh.rst:234
330328
msgid ""
331329
"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 "
333331
"constrain the code which can be compiled and should be "
334332
":c:data:`Py_eval_input`, :c:data:`Py_file_input`, or "
335333
":c:data:`Py_single_input`. The filename specified by *filename* is used to "
336334
"construct the code object and may appear in tracebacks or :exc:`SyntaxError`"
337335
" exception messages. This returns ``NULL`` if the code cannot be parsed or "
338336
"compiled."
339337
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``。"
344338

345-
#: ../../c-api/veryhigh.rst:241
339+
#: ../../c-api/veryhigh.rst:242
346340
msgid ""
347341
"The integer *optimize* specifies the optimization level of the compiler; a "
348342
"value of ``-1`` selects the optimization level of the interpreter as given "
@@ -354,23 +348,23 @@ msgstr ""
354348
"``0`` (无优化;``__debug__`` 为真值)、``1`` (断言被移除,``__debug__`` 为假值) 或 ``2`` "
355349
"(文档字符串也被移除)。"
356350

357-
#: ../../c-api/veryhigh.rst:252
351+
#: ../../c-api/veryhigh.rst:253
358352
msgid ""
359353
"Like :c:func:`Py_CompileStringObject`, but *filename* is a byte string "
360354
"decoded from the :term:`filesystem encoding and error handler`."
361355
msgstr ""
362356
"与 :c:func:`Py_CompileStringObject` 类似,但 *filename* 是以 :term:`filesystem "
363357
"encoding and error handler` 解码出的字节串。"
364358

365-
#: ../../c-api/veryhigh.rst:259
359+
#: ../../c-api/veryhigh.rst:260
366360
msgid ""
367361
"This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the"
368362
" code object, and global and local variables. The other arguments are set "
369363
"to ``NULL``."
370364
msgstr ""
371365
"这是针对 :c:func:`PyEval_EvalCodeEx` 的简化版接口,只附带代码对象,以及全局和局部变量。 其他参数均设为 ``NULL``。"
372366

373-
#: ../../c-api/veryhigh.rst:266
367+
#: ../../c-api/veryhigh.rst:267
374368
msgid ""
375369
"Evaluate a precompiled code object, given a particular environment for its "
376370
"evaluation. This environment consists of a dictionary of global variables, "
@@ -381,13 +375,13 @@ msgstr ""
381375
"对一个预编译的代码对象求值,为其求值给出特定的环境。 此环境由全局变量的字典,局部变量映射对象,参数、关键字和默认值的数组,:ref:`仅限关键字 "
382376
"<keyword-only_parameter>` 参数的默认值的字典和单元的封闭元组构成。"
383377

384-
#: ../../c-api/veryhigh.rst:275
378+
#: ../../c-api/veryhigh.rst:276
385379
msgid ""
386380
"Evaluate an execution frame. This is a simplified interface to "
387381
":c:func:`PyEval_EvalFrameEx`, for backward compatibility."
388382
msgstr "对一个执行帧求值。 这是针对 :c:func:`PyEval_EvalFrameEx` 的简化版接口,用于保持向下兼容性。"
389383

390-
#: ../../c-api/veryhigh.rst:281
384+
#: ../../c-api/veryhigh.rst:282
391385
msgid ""
392386
"This is the main, unvarnished function of Python interpretation. The code "
393387
"object associated with the execution frame *f* is executed, interpreting "
@@ -400,25 +394,25 @@ msgstr ""
400394
"*throwflag* 形参基本可以被忽略 —— 如果为真值,则会导致立即抛出一个异常;这会被用于生成器对象的 "
401395
":meth:`~generator.throw` 方法。"
402396

403-
#: ../../c-api/veryhigh.rst:288
397+
#: ../../c-api/veryhigh.rst:289
404398
msgid ""
405399
"This function now includes a debug assertion to help ensure that it does not"
406400
" silently discard an active exception."
407401
msgstr "该函数现在包含一个调试断言,用以确保不会静默地丢弃活动的异常。"
408402

409-
#: ../../c-api/veryhigh.rst:295
403+
#: ../../c-api/veryhigh.rst:296
410404
msgid ""
411405
"This function changes the flags of the current evaluation frame, and returns"
412406
" true on success, false on failure."
413407
msgstr "此函数会修改当前求值帧的旗标,并在成功时返回真值,失败时返回假值。"
414408

415-
#: ../../c-api/veryhigh.rst:303
409+
#: ../../c-api/veryhigh.rst:304
416410
msgid ""
417411
"The start symbol from the Python grammar for isolated expressions; for use "
418412
"with :c:func:`Py_CompileString`."
419413
msgstr "Python 语法中用于孤立表达式的起始符号;配合 :c:func:`Py_CompileString` 使用。"
420414

421-
#: ../../c-api/veryhigh.rst:311
415+
#: ../../c-api/veryhigh.rst:312
422416
msgid ""
423417
"The start symbol from the Python grammar for sequences of statements as read"
424418
" from a file or other source; for use with :c:func:`Py_CompileString`. This"
@@ -427,15 +421,15 @@ msgstr ""
427421
"Python 语法中用于从文件或其他源读取语句序列的起始符号;配合 :c:func:`Py_CompileString` 使用。 这是在编译任意长的 "
428422
"Python 源代码时要使用的符号。"
429423

430-
#: ../../c-api/veryhigh.rst:320
424+
#: ../../c-api/veryhigh.rst:321
431425
msgid ""
432426
"The start symbol from the Python grammar for a single statement; for use "
433427
"with :c:func:`Py_CompileString`. This is the symbol used for the interactive"
434428
" interpreter loop."
435429
msgstr ""
436430
"Python 语法中用于单独语句的起始符号;配合 :c:func:`Py_CompileString` 使用。 这是用于交互式解释器循环的符号。"
437431

438-
#: ../../c-api/veryhigh.rst:327
432+
#: ../../c-api/veryhigh.rst:328
439433
msgid ""
440434
"This is the structure used to hold compiler flags. In cases where code is "
441435
"only being compiled, it is passed as ``int flags``, and in cases where code "
@@ -446,7 +440,7 @@ msgstr ""
446440
"``PyCompilerFlags *flags`` 传入。 在这种情况下,``from __future__ import`` 可以修改 "
447441
"*flags*。"
448442

449-
#: ../../c-api/veryhigh.rst:332
443+
#: ../../c-api/veryhigh.rst:333
450444
msgid ""
451445
"Whenever ``PyCompilerFlags *flags`` is ``NULL``, "
452446
":c:member:`~PyCompilerFlags.cf_flags` is treated as equal to ``0``, and any "
@@ -456,33 +450,33 @@ msgstr ""
456450
"``NULL``,:c:member:`~PyCompilerFlags.cf_flags` 就会被视为等同于 ``0``,而由于 ``from "
457451
"__future__ import`` 而产生的任何修改都会被丢弃。"
458452

459-
#: ../../c-api/veryhigh.rst:338
453+
#: ../../c-api/veryhigh.rst:339
460454
msgid "Compiler flags."
461455
msgstr "编译器旗标。"
462456

463-
#: ../../c-api/veryhigh.rst:342
457+
#: ../../c-api/veryhigh.rst:343
464458
msgid ""
465459
"*cf_feature_version* is the minor Python version. It should be initialized "
466460
"to ``PY_MINOR_VERSION``."
467461
msgstr "*cf_feature_version* 是 Python 的小版本号。 它应当被初始化为 ``PY_MINOR_VERSION``。"
468462

469-
#: ../../c-api/veryhigh.rst:345
463+
#: ../../c-api/veryhigh.rst:346
470464
msgid ""
471465
"The field is ignored by default, it is used if and only if ``PyCF_ONLY_AST``"
472466
" flag is set in :c:member:`~PyCompilerFlags.cf_flags`."
473467
msgstr ""
474468
"该字段默认会被忽略,当且仅当在 :c:member:`~PyCompilerFlags.cf_flags` 中设置了 ``PyCF_ONLY_AST``"
475469
" 旗标时它才会被使用。"
476470

477-
#: ../../c-api/veryhigh.rst:348
471+
#: ../../c-api/veryhigh.rst:349
478472
msgid "Added *cf_feature_version* field."
479473
msgstr "增加了 *cf_feature_version* 字段。"
480474

481-
#: ../../c-api/veryhigh.rst:351
475+
#: ../../c-api/veryhigh.rst:352
482476
msgid "The available compiler flags are accessible as macros:"
483477
msgstr "现有的编译器旗标可作为宏来使用:"
484478

485-
#: ../../c-api/veryhigh.rst:360
479+
#: ../../c-api/veryhigh.rst:361
486480
msgid ""
487481
"See :ref:`compiler flags <ast-compiler-flags>` in documentation of the "
488482
":py:mod:`!ast` Python module, which exports these constants under the same "
@@ -491,7 +485,7 @@ msgstr ""
491485
"请参阅 :py:mod:`!ast` Python 模块文档中的 :ref:`编译器旗标 <ast-compiler-"
492486
"flags>`,它们会将这些常量以相同的名称导出。"
493487

494-
#: ../../c-api/veryhigh.rst:364
488+
#: ../../c-api/veryhigh.rst:365
495489
msgid ""
496490
"The \"``PyCF``\" flags above can be combined with \"``CO_FUTURE``\" flags "
497491
"such as :c:macro:`CO_FUTURE_ANNOTATIONS` to enable features normally "
@@ -502,7 +496,7 @@ msgstr ""
502496
" 组合使用,以启用通常通过 :ref:`future 语句 <future>` 选择的功能特性。 完整标志列表请参见 "
503497
":ref:`c_codeobject_flags`。"
504498

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
507501
msgid "Py_CompileString (C function)"
508502
msgstr "Py_CompileString (C 函数)"

0 commit comments

Comments
 (0)