Skip to content

Commit a9d1fe5

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.13 (#1133)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Wang <[email protected]>
1 parent ba7e03a commit a9d1fe5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+6464
-5041
lines changed

c-api/code.po

Lines changed: 119 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-06-27 07:36+0000\n"
10+
"POT-Creation-Date: 2025-08-03 00:19+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -145,7 +145,7 @@ msgstr ""
145145

146146
#: ../../c-api/code.rst:110
147147
msgid "Returns ``1`` if the function succeeds and 0 otherwise."
148-
msgstr ""
148+
msgstr "如果函式成功則回傳 ``1``,否則回傳 ``0``。"
149149

150150
#: ../../c-api/code.rst:116
151151
msgid ""
@@ -252,85 +252,183 @@ msgid ""
252252
"it before returning."
253253
msgstr ""
254254

255-
#: ../../c-api/code.rst:215
256-
msgid "Extra information"
255+
#: ../../c-api/code.rst:217
256+
msgid "Code Object Flags"
257+
msgstr "程式碼物件旗標"
258+
259+
#: ../../c-api/code.rst:219
260+
msgid ""
261+
"Code objects contain a bit-field of flags, which can be retrieved as the :"
262+
"attr:`~codeobject.co_flags` Python attribute (for example using :c:func:"
263+
"`PyObject_GetAttrString`), and set using a *flags* argument to :c:func:"
264+
"`PyUnstable_Code_New` and similar functions."
257265
msgstr ""
258266

259-
#: ../../c-api/code.rst:217
267+
#: ../../c-api/code.rst:224
268+
msgid ""
269+
"Flags whose names start with ``CO_FUTURE_`` correspond to features normally "
270+
"selectable by :ref:`future statements <future>`. These flags can be used in :"
271+
"c:member:`PyCompilerFlags.cf_flags`. Note that many ``CO_FUTURE_`` flags are "
272+
"mandatory in current versions of Python, and setting them has no effect."
273+
msgstr ""
274+
275+
#: ../../c-api/code.rst:230
276+
msgid ""
277+
"The following flags are available. For their meaning, see the linked "
278+
"documentation of their Python equivalents."
279+
msgstr ""
280+
281+
#: ../../c-api/code.rst:238
282+
msgid "Flag"
283+
msgstr "旗標"
284+
285+
#: ../../c-api/code.rst:239
286+
msgid "Meaning"
287+
msgstr "意義"
288+
289+
#: ../../c-api/code.rst:241
290+
msgid ":py:data:`inspect.CO_OPTIMIZED`"
291+
msgstr ":py:data:`inspect.CO_OPTIMIZED`"
292+
293+
#: ../../c-api/code.rst:243
294+
msgid ":py:data:`inspect.CO_NEWLOCALS`"
295+
msgstr ":py:data:`inspect.CO_NEWLOCALS`"
296+
297+
#: ../../c-api/code.rst:245
298+
msgid ":py:data:`inspect.CO_VARARGS`"
299+
msgstr ":py:data:`inspect.CO_VARARGS`"
300+
301+
#: ../../c-api/code.rst:247
302+
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
303+
msgstr ":py:data:`inspect.CO_VARKEYWORDS`"
304+
305+
#: ../../c-api/code.rst:249
306+
msgid ":py:data:`inspect.CO_NESTED`"
307+
msgstr ":py:data:`inspect.CO_NESTED`"
308+
309+
#: ../../c-api/code.rst:251
310+
msgid ":py:data:`inspect.CO_GENERATOR`"
311+
msgstr ":py:data:`inspect.CO_GENERATOR`"
312+
313+
#: ../../c-api/code.rst:253
314+
msgid ":py:data:`inspect.CO_COROUTINE`"
315+
msgstr ":py:data:`inspect.CO_COROUTINE`"
316+
317+
#: ../../c-api/code.rst:255
318+
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
319+
msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
320+
321+
#: ../../c-api/code.rst:257
322+
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
323+
msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"
324+
325+
#: ../../c-api/code.rst:260
326+
msgid "no effect (:py:data:`__future__.division`)"
327+
msgstr "無效果(:py:data:`__future__.division`)"
328+
329+
#: ../../c-api/code.rst:262
330+
msgid "no effect (:py:data:`__future__.absolute_import`)"
331+
msgstr "無效果(:py:data:`__future__.absolute_import`)"
332+
333+
#: ../../c-api/code.rst:264
334+
msgid "no effect (:py:data:`__future__.with_statement`)"
335+
msgstr "無效果(:py:data:`__future__.with_statement`)"
336+
337+
#: ../../c-api/code.rst:266
338+
msgid "no effect (:py:data:`__future__.print_function`)"
339+
msgstr "無效果(:py:data:`__future__.print_function`)"
340+
341+
#: ../../c-api/code.rst:268
342+
msgid "no effect (:py:data:`__future__.unicode_literals`)"
343+
msgstr "無效果(:py:data:`__future__.unicode_literals`)"
344+
345+
#: ../../c-api/code.rst:270
346+
msgid "no effect (:py:data:`__future__.generator_stop`)"
347+
msgstr "無效果(:py:data:`__future__.generator_stop`)"
348+
349+
#: ../../c-api/code.rst:272
350+
msgid ":py:data:`__future__.annotations`"
351+
msgstr ":py:data:`__future__.annotations`"
352+
353+
#: ../../c-api/code.rst:276
354+
msgid "Extra information"
355+
msgstr "額外資訊"
356+
357+
#: ../../c-api/code.rst:278
260358
msgid ""
261359
"To support low-level extensions to frame evaluation, such as external just-"
262360
"in-time compilers, it is possible to attach arbitrary extra data to code "
263361
"objects."
264362
msgstr ""
265363

266-
#: ../../c-api/code.rst:221
364+
#: ../../c-api/code.rst:282
267365
msgid ""
268366
"These functions are part of the unstable C API tier: this functionality is a "
269367
"CPython implementation detail, and the API may change without deprecation "
270368
"warnings."
271369
msgstr ""
272370

273-
#: ../../c-api/code.rst:227
371+
#: ../../c-api/code.rst:288
274372
msgid "Return a new an opaque index value used to adding data to code objects."
275373
msgstr ""
276374

277-
#: ../../c-api/code.rst:229
375+
#: ../../c-api/code.rst:290
278376
msgid ""
279377
"You generally call this function once (per interpreter) and use the result "
280378
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
281379
"individual code objects."
282380
msgstr ""
283381

284-
#: ../../c-api/code.rst:233
382+
#: ../../c-api/code.rst:294
285383
msgid ""
286384
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
287385
"called on non-``NULL`` data stored under the new index. Use :c:func:"
288386
"`Py_DecRef` when storing :c:type:`PyObject`."
289387
msgstr ""
290388

291-
#: ../../c-api/code.rst:239
389+
#: ../../c-api/code.rst:300
292390
msgid "as ``_PyEval_RequestCodeExtraIndex``"
293391
msgstr ""
294392

295-
#: ../../c-api/code.rst:243
393+
#: ../../c-api/code.rst:304
296394
msgid ""
297395
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
298396
"is deprecated, but will be available until the API changes."
299397
msgstr ""
300398

301-
#: ../../c-api/code.rst:249
399+
#: ../../c-api/code.rst:310
302400
msgid ""
303401
"Set *extra* to the extra data stored under the given index. Return 0 on "
304402
"success. Set an exception and return -1 on failure."
305403
msgstr ""
306404

307-
#: ../../c-api/code.rst:252
405+
#: ../../c-api/code.rst:313
308406
msgid ""
309407
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
310408
"without setting an exception."
311409
msgstr ""
312410

313-
#: ../../c-api/code.rst:257
411+
#: ../../c-api/code.rst:318
314412
msgid "as ``_PyCode_GetExtra``"
315413
msgstr ""
316414

317-
#: ../../c-api/code.rst:261
415+
#: ../../c-api/code.rst:322
318416
msgid ""
319417
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
320418
"but will be available until the API changes."
321419
msgstr ""
322420

323-
#: ../../c-api/code.rst:267
421+
#: ../../c-api/code.rst:328
324422
msgid ""
325423
"Set the extra data stored under the given index to *extra*. Return 0 on "
326424
"success. Set an exception and return -1 on failure."
327425
msgstr ""
328426

329-
#: ../../c-api/code.rst:272
427+
#: ../../c-api/code.rst:333
330428
msgid "as ``_PyCode_SetExtra``"
331429
msgstr ""
332430

333-
#: ../../c-api/code.rst:276
431+
#: ../../c-api/code.rst:337
334432
msgid ""
335433
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
336434
"but will be available until the API changes."
@@ -356,14 +454,14 @@ msgstr "PyCode_New(C 函式)"
356454
msgid "PyCode_NewWithPosOnlyArgs (C function)"
357455
msgstr "PyCode_NewWithPosOnlyArgs(C 函式)"
358456

359-
#: ../../c-api/code.rst:237
457+
#: ../../c-api/code.rst:298
360458
msgid "_PyEval_RequestCodeExtraIndex (C function)"
361459
msgstr "_PyEval_RequestCodeExtraIndex(C 函式)"
362460

363-
#: ../../c-api/code.rst:255
461+
#: ../../c-api/code.rst:316
364462
msgid "_PyCode_GetExtra (C function)"
365463
msgstr "_PyCode_GetExtra(C 函式)"
366464

367-
#: ../../c-api/code.rst:270
465+
#: ../../c-api/code.rst:331
368466
msgid "_PyCode_SetExtra (C function)"
369467
msgstr "_PyCode_SetExtra(C 函式)"

c-api/hash.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-09-23 07:52+0800\n"
10+
"POT-Creation-Date: 2025-08-12 00:17+0000\n"
1111
"PO-Revision-Date: 2024-04-30 00:20+0800\n"
1212
"Last-Translator: Matt Wang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -62,6 +62,10 @@ msgstr "用於複數虛數部分的乘數。"
6262
msgid "Hash function definition used by :c:func:`PyHash_GetFuncDef`."
6363
msgstr ":c:func:`PyHash_GetFuncDef` 所使用的雜湊函式定義。"
6464

65+
#: ../../c-api/hash.rst:56
66+
msgid "Hash function."
67+
msgstr "雜湊函式。"
68+
6569
#: ../../c-api/hash.rst:60
6670
msgid "Hash function name (UTF-8 encoded string)."
6771
msgstr "雜湊函式名稱(UTF-8 編碼字串)。"

0 commit comments

Comments
 (0)