Skip to content

Commit a777482

Browse files
sync with cpython 6b090c92
1 parent e7e4034 commit a777482

32 files changed

+5607
-5252
lines changed

c-api/unicode.po

Lines changed: 103 additions & 109 deletions
Large diffs are not rendered by default.

c-api/veryhigh.po

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-08-03 00:19+0000\n"
9+
"POT-Creation-Date: 2025-10-08 00:15+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:08+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -216,34 +216,35 @@ msgid ""
216216
"objects *globals* and *locals* with the compiler flags specified by "
217217
"*flags*. *globals* must be a dictionary; *locals* can be any object that "
218218
"implements the mapping protocol. The parameter *start* specifies the start "
219-
"token that should be used to parse the source code."
219+
"symbol and must one of the following: :c:data:`Py_eval_input`, :c:data:"
220+
"`Py_file_input`, or :c:data:`Py_single_input`."
220221
msgstr ""
221222

222-
#: ../../c-api/veryhigh.rst:188
223+
#: ../../c-api/veryhigh.rst:189
223224
msgid ""
224225
"Returns the result of executing the code as a Python object, or ``NULL`` if "
225226
"an exception was raised."
226227
msgstr ""
227228

228-
#: ../../c-api/veryhigh.rst:194
229+
#: ../../c-api/veryhigh.rst:195
229230
msgid ""
230231
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving "
231232
"*closeit* set to ``0`` and *flags* set to ``NULL``."
232233
msgstr ""
233234

234-
#: ../../c-api/veryhigh.rst:200
235+
#: ../../c-api/veryhigh.rst:201
235236
msgid ""
236237
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving "
237238
"*flags* set to ``NULL``."
238239
msgstr ""
239240

240-
#: ../../c-api/veryhigh.rst:206
241+
#: ../../c-api/veryhigh.rst:207
241242
msgid ""
242243
"This is a simplified interface to :c:func:`PyRun_FileExFlags` below, leaving "
243244
"*closeit* set to ``0``."
244245
msgstr ""
245246

246-
#: ../../c-api/veryhigh.rst:212
247+
#: ../../c-api/veryhigh.rst:213
247248
msgid ""
248249
"Similar to :c:func:`PyRun_StringFlags`, but the Python source code is read "
249250
"from *fp* instead of an in-memory string. *filename* should be the name of "
@@ -252,30 +253,30 @@ msgid ""
252253
"`PyRun_FileExFlags` returns."
253254
msgstr ""
254255

255-
#: ../../c-api/veryhigh.rst:221
256+
#: ../../c-api/veryhigh.rst:222
256257
msgid ""
257258
"This is a simplified interface to :c:func:`Py_CompileStringFlags` below, "
258259
"leaving *flags* set to ``NULL``."
259260
msgstr ""
260261

261-
#: ../../c-api/veryhigh.rst:227
262+
#: ../../c-api/veryhigh.rst:228
262263
msgid ""
263264
"This is a simplified interface to :c:func:`Py_CompileStringExFlags` below, "
264265
"with *optimize* set to ``-1``."
265266
msgstr ""
266267

267-
#: ../../c-api/veryhigh.rst:233
268+
#: ../../c-api/veryhigh.rst:234
268269
msgid ""
269270
"Parse and compile the Python source code in *str*, returning the resulting "
270-
"code object. The start token is given by *start*; this can be used to "
271+
"code object. The start symbol is given by *start*; this can be used to "
271272
"constrain the code which can be compiled and should be :c:data:"
272273
"`Py_eval_input`, :c:data:`Py_file_input`, or :c:data:`Py_single_input`. The "
273274
"filename specified by *filename* is used to construct the code object and "
274275
"may appear in tracebacks or :exc:`SyntaxError` exception messages. This "
275276
"returns ``NULL`` if the code cannot be parsed or compiled."
276277
msgstr ""
277278

278-
#: ../../c-api/veryhigh.rst:241
279+
#: ../../c-api/veryhigh.rst:242
279280
msgid ""
280281
"The integer *optimize* specifies the optimization level of the compiler; a "
281282
"value of ``-1`` selects the optimization level of the interpreter as given "
@@ -284,20 +285,20 @@ msgid ""
284285
"or ``2`` (docstrings are removed too)."
285286
msgstr ""
286287

287-
#: ../../c-api/veryhigh.rst:252
288+
#: ../../c-api/veryhigh.rst:253
288289
msgid ""
289290
"Like :c:func:`Py_CompileStringObject`, but *filename* is a byte string "
290291
"decoded from the :term:`filesystem encoding and error handler`."
291292
msgstr ""
292293

293-
#: ../../c-api/veryhigh.rst:259
294+
#: ../../c-api/veryhigh.rst:260
294295
msgid ""
295296
"This is a simplified interface to :c:func:`PyEval_EvalCodeEx`, with just the "
296297
"code object, and global and local variables. The other arguments are set to "
297298
"``NULL``."
298299
msgstr ""
299300

300-
#: ../../c-api/veryhigh.rst:266
301+
#: ../../c-api/veryhigh.rst:267
301302
msgid ""
302303
"Evaluate a precompiled code object, given a particular environment for its "
303304
"evaluation. This environment consists of a dictionary of global variables, "
@@ -306,13 +307,13 @@ msgid ""
306307
"only_parameter>` arguments and a closure tuple of cells."
307308
msgstr ""
308309

309-
#: ../../c-api/veryhigh.rst:275
310+
#: ../../c-api/veryhigh.rst:276
310311
msgid ""
311312
"Evaluate an execution frame. This is a simplified interface to :c:func:"
312313
"`PyEval_EvalFrameEx`, for backward compatibility."
313314
msgstr ""
314315

315-
#: ../../c-api/veryhigh.rst:281
316+
#: ../../c-api/veryhigh.rst:282
316317
msgid ""
317318
"This is the main, unvarnished function of Python interpretation. The code "
318319
"object associated with the execution frame *f* is executed, interpreting "
@@ -322,92 +323,92 @@ msgid ""
322323
"of generator objects."
323324
msgstr ""
324325

325-
#: ../../c-api/veryhigh.rst:288
326+
#: ../../c-api/veryhigh.rst:289
326327
msgid ""
327328
"This function now includes a debug assertion to help ensure that it does not "
328329
"silently discard an active exception."
329330
msgstr ""
330331

331-
#: ../../c-api/veryhigh.rst:295
332+
#: ../../c-api/veryhigh.rst:296
332333
msgid ""
333334
"This function changes the flags of the current evaluation frame, and returns "
334335
"true on success, false on failure."
335336
msgstr ""
336337

337-
#: ../../c-api/veryhigh.rst:303
338+
#: ../../c-api/veryhigh.rst:304
338339
msgid ""
339340
"The start symbol from the Python grammar for isolated expressions; for use "
340341
"with :c:func:`Py_CompileString`."
341342
msgstr ""
342343

343-
#: ../../c-api/veryhigh.rst:311
344+
#: ../../c-api/veryhigh.rst:312
344345
msgid ""
345346
"The start symbol from the Python grammar for sequences of statements as read "
346347
"from a file or other source; for use with :c:func:`Py_CompileString`. This "
347348
"is the symbol to use when compiling arbitrarily long Python source code."
348349
msgstr ""
349350

350-
#: ../../c-api/veryhigh.rst:320
351+
#: ../../c-api/veryhigh.rst:321
351352
msgid ""
352353
"The start symbol from the Python grammar for a single statement; for use "
353354
"with :c:func:`Py_CompileString`. This is the symbol used for the interactive "
354355
"interpreter loop."
355356
msgstr ""
356357

357-
#: ../../c-api/veryhigh.rst:327
358+
#: ../../c-api/veryhigh.rst:328
358359
msgid ""
359360
"This is the structure used to hold compiler flags. In cases where code is "
360361
"only being compiled, it is passed as ``int flags``, and in cases where code "
361362
"is being executed, it is passed as ``PyCompilerFlags *flags``. In this "
362363
"case, ``from __future__ import`` can modify *flags*."
363364
msgstr ""
364365

365-
#: ../../c-api/veryhigh.rst:332
366+
#: ../../c-api/veryhigh.rst:333
366367
msgid ""
367368
"Whenever ``PyCompilerFlags *flags`` is ``NULL``, :c:member:`~PyCompilerFlags."
368369
"cf_flags` is treated as equal to ``0``, and any modification due to ``from "
369370
"__future__ import`` is discarded."
370371
msgstr ""
371372

372-
#: ../../c-api/veryhigh.rst:338
373+
#: ../../c-api/veryhigh.rst:339
373374
msgid "Compiler flags."
374375
msgstr ""
375376

376-
#: ../../c-api/veryhigh.rst:342
377+
#: ../../c-api/veryhigh.rst:343
377378
msgid ""
378379
"*cf_feature_version* is the minor Python version. It should be initialized "
379380
"to ``PY_MINOR_VERSION``."
380381
msgstr ""
381382

382-
#: ../../c-api/veryhigh.rst:345
383+
#: ../../c-api/veryhigh.rst:346
383384
msgid ""
384385
"The field is ignored by default, it is used if and only if ``PyCF_ONLY_AST`` "
385386
"flag is set in :c:member:`~PyCompilerFlags.cf_flags`."
386387
msgstr ""
387388

388-
#: ../../c-api/veryhigh.rst:348
389+
#: ../../c-api/veryhigh.rst:349
389390
msgid "Added *cf_feature_version* field."
390391
msgstr "新增 *cf_feature_version* 欄位。"
391392

392-
#: ../../c-api/veryhigh.rst:351
393+
#: ../../c-api/veryhigh.rst:352
393394
msgid "The available compiler flags are accessible as macros:"
394395
msgstr ""
395396

396-
#: ../../c-api/veryhigh.rst:360
397+
#: ../../c-api/veryhigh.rst:361
397398
msgid ""
398399
"See :ref:`compiler flags <ast-compiler-flags>` in documentation of the :py:"
399400
"mod:`!ast` Python module, which exports these constants under the same names."
400401
msgstr ""
401402

402-
#: ../../c-api/veryhigh.rst:364
403+
#: ../../c-api/veryhigh.rst:365
403404
msgid ""
404405
"The \"``PyCF``\" flags above can be combined with \"``CO_FUTURE``\" flags "
405406
"such as :c:macro:`CO_FUTURE_ANNOTATIONS` to enable features normally "
406407
"selectable using :ref:`future statements <future>`. See :ref:"
407408
"`c_codeobject_flags` for a complete list."
408409
msgstr ""
409410

410-
#: ../../c-api/veryhigh.rst:301 ../../c-api/veryhigh.rst:309
411-
#: ../../c-api/veryhigh.rst:318
411+
#: ../../c-api/veryhigh.rst:302 ../../c-api/veryhigh.rst:310
412+
#: ../../c-api/veryhigh.rst:319
412413
msgid "Py_CompileString (C function)"
413414
msgstr "Py_CompileString(C 函式)"

0 commit comments

Comments
 (0)