Skip to content

Commit 5c40749

Browse files
sync with cpython 3d802b5b
1 parent 66e207c commit 5c40749

8 files changed

Lines changed: 546 additions & 532 deletions

File tree

c-api/buffer.po

Lines changed: 91 additions & 88 deletions
Large diffs are not rendered by default.

c-api/code.po

Lines changed: 60 additions & 51 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: 2026-01-15 00:15+0000\n"
9+
"POT-Creation-Date: 2026-07-08 00:29+0000\n"
1010
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1111
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -27,7 +27,8 @@ msgid ""
2727
"represents a chunk of executable code that hasn't yet been bound into a "
2828
"function."
2929
msgstr ""
30-
"程式碼物件是 CPython 實作的低階細節。每個程式碼物件都代表一段尚未綁定到函式的可執行程式碼。"
30+
"程式碼物件是 CPython 實作的低階細節。每個程式碼物件都代表一段尚未綁定到函式的"
31+
"可執行程式碼。"
3132

3233
#: ../../c-api/code.rst:18
3334
msgid ""
@@ -40,26 +41,31 @@ msgid ""
4041
"This is an instance of :c:type:`PyTypeObject` representing the Python :ref:"
4142
"`code object <code-objects>`."
4243
msgstr ""
43-
"這是 :c:type:`PyTypeObject` 的一個實例,代表 Python 的\\ :ref:`程式碼物件 <code-objects>`。"
44+
"這是 :c:type:`PyTypeObject` 的一個實例,代表 Python 的\\ :ref:`程式碼物件 "
45+
"<code-objects>`。"
4446

4547
#: ../../c-api/code.rst:30
4648
msgid ""
4749
"Return true if *co* is a :ref:`code object <code-objects>`. This function "
4850
"always succeeds."
4951
msgstr ""
50-
"如果 *co* 是\\ :ref:`程式碼物件 <code-objects>`,則回傳 true。此函式總會成功執行。"
52+
"如果 *co* 是\\ :ref:`程式碼物件 <code-objects>`,則回傳 true。此函式總會成功"
53+
"執行。"
5154

5255
#: ../../c-api/code.rst:35
5356
msgid ""
5457
"Return the number of :term:`free (closure) variables <closure variable>` in "
5558
"a code object."
56-
msgstr "回傳程式碼物件中\\ :term:`自由(閉包)變數 <closure variable>`\\ 的數量。"
59+
msgstr ""
60+
"回傳程式碼物件中\\ :term:`自由(閉包)變數 <closure variable>`\\ 的數量。"
5761

5862
#: ../../c-api/code.rst:40
5963
msgid ""
6064
"Return the position of the first :term:`free (closure) variable <closure "
6165
"variable>` in a code object."
62-
msgstr "回傳程式碼物件中第一個\\ :term:`自由(閉包)變數 <closure variable>`\\ 的位置。"
66+
msgstr ""
67+
"回傳程式碼物件中第一個\\ :term:`自由(閉包)變數 <closure variable>`\\ 的位"
68+
"置。"
6369

6470
#: ../../c-api/code.rst:45
6571
msgid ""
@@ -117,7 +123,8 @@ msgid ""
117123
"Renamed to ``PyUnstable_Code_NewWithPosOnlyArgs``. The old name is "
118124
"deprecated, but will remain available until the signature changes again."
119125
msgstr ""
120-
"重新命名為 ``PyUnstable_Code_NewWithPosOnlyArgs``。舊的名稱已被棄用,但在簽名再次變更前仍可使用。"
126+
"重新命名為 ``PyUnstable_Code_NewWithPosOnlyArgs``。舊的名稱已被棄用,但在簽名"
127+
"再次變更前仍可使用。"
121128

122129
#: ../../c-api/code.rst:93
123130
msgid ""
@@ -256,7 +263,7 @@ msgid ""
256263
msgstr ""
257264

258265
#: ../../c-api/code.rst:217
259-
msgid "This is a :term:`soft deprecated` function that does nothing."
266+
msgid "This is a function that does nothing."
260267
msgstr ""
261268

262269
#: ../../c-api/code.rst:219
@@ -269,199 +276,201 @@ msgstr ""
269276
msgid "This function now does nothing."
270277
msgstr ""
271278

272-
#: ../../c-api/code.rst:229
279+
#: ../../c-api/code.rst:231
273280
msgid "Code Object Flags"
274281
msgstr "程式碼物件旗標"
275282

276-
#: ../../c-api/code.rst:231
283+
#: ../../c-api/code.rst:233
277284
msgid ""
278285
"Code objects contain a bit-field of flags, which can be retrieved as the :"
279286
"attr:`~codeobject.co_flags` Python attribute (for example using :c:func:"
280287
"`PyObject_GetAttrString`), and set using a *flags* argument to :c:func:"
281288
"`PyUnstable_Code_New` and similar functions."
282289
msgstr ""
283290

284-
#: ../../c-api/code.rst:236
291+
#: ../../c-api/code.rst:238
285292
msgid ""
286293
"Flags whose names start with ``CO_FUTURE_`` correspond to features normally "
287294
"selectable by :ref:`future statements <future>`. These flags can be used in :"
288295
"c:member:`PyCompilerFlags.cf_flags`. Note that many ``CO_FUTURE_`` flags are "
289296
"mandatory in current versions of Python, and setting them has no effect."
290297
msgstr ""
291298

292-
#: ../../c-api/code.rst:242
299+
#: ../../c-api/code.rst:244
293300
msgid ""
294301
"The following flags are available. For their meaning, see the linked "
295302
"documentation of their Python equivalents."
296303
msgstr ""
297304

298-
#: ../../c-api/code.rst:250
305+
#: ../../c-api/code.rst:252
299306
msgid "Flag"
300307
msgstr "旗標"
301308

302-
#: ../../c-api/code.rst:251
309+
#: ../../c-api/code.rst:253
303310
msgid "Meaning"
304311
msgstr "意義"
305312

306-
#: ../../c-api/code.rst:253
313+
#: ../../c-api/code.rst:255
307314
msgid ":py:data:`inspect.CO_OPTIMIZED`"
308315
msgstr ":py:data:`inspect.CO_OPTIMIZED`"
309316

310-
#: ../../c-api/code.rst:255
317+
#: ../../c-api/code.rst:257
311318
msgid ":py:data:`inspect.CO_NEWLOCALS`"
312319
msgstr ":py:data:`inspect.CO_NEWLOCALS`"
313320

314-
#: ../../c-api/code.rst:257
321+
#: ../../c-api/code.rst:259
315322
msgid ":py:data:`inspect.CO_VARARGS`"
316323
msgstr ":py:data:`inspect.CO_VARARGS`"
317324

318-
#: ../../c-api/code.rst:259
325+
#: ../../c-api/code.rst:261
319326
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
320327
msgstr ":py:data:`inspect.CO_VARKEYWORDS`"
321328

322-
#: ../../c-api/code.rst:261
329+
#: ../../c-api/code.rst:263
323330
msgid ":py:data:`inspect.CO_NESTED`"
324331
msgstr ":py:data:`inspect.CO_NESTED`"
325332

326-
#: ../../c-api/code.rst:263
333+
#: ../../c-api/code.rst:265
327334
msgid ":py:data:`inspect.CO_GENERATOR`"
328335
msgstr ":py:data:`inspect.CO_GENERATOR`"
329336

330-
#: ../../c-api/code.rst:265
337+
#: ../../c-api/code.rst:267
331338
msgid ":py:data:`inspect.CO_COROUTINE`"
332339
msgstr ":py:data:`inspect.CO_COROUTINE`"
333340

334-
#: ../../c-api/code.rst:267
341+
#: ../../c-api/code.rst:269
335342
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
336343
msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
337344

338-
#: ../../c-api/code.rst:269
345+
#: ../../c-api/code.rst:271
339346
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
340347
msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"
341348

342-
#: ../../c-api/code.rst:271
349+
#: ../../c-api/code.rst:273
343350
msgid ":py:data:`inspect.CO_HAS_DOCSTRING`"
344351
msgstr ":py:data:`inspect.CO_HAS_DOCSTRING`"
345352

346-
#: ../../c-api/code.rst:273
353+
#: ../../c-api/code.rst:275
347354
msgid ":py:data:`inspect.CO_METHOD`"
348355
msgstr ":py:data:`inspect.CO_METHOD`"
349356

350-
#: ../../c-api/code.rst:276
357+
#: ../../c-api/code.rst:278
351358
msgid "no effect (:py:data:`__future__.division`)"
352359
msgstr "無效果(:py:data:`__future__.division`)"
353360

354-
#: ../../c-api/code.rst:278
361+
#: ../../c-api/code.rst:280
355362
msgid "no effect (:py:data:`__future__.absolute_import`)"
356363
msgstr "無效果(:py:data:`__future__.absolute_import`)"
357364

358-
#: ../../c-api/code.rst:280
365+
#: ../../c-api/code.rst:282
359366
msgid "no effect (:py:data:`__future__.with_statement`)"
360367
msgstr "無效果(:py:data:`__future__.with_statement`)"
361368

362-
#: ../../c-api/code.rst:282
369+
#: ../../c-api/code.rst:284
363370
msgid "no effect (:py:data:`__future__.print_function`)"
364371
msgstr "無效果(:py:data:`__future__.print_function`)"
365372

366-
#: ../../c-api/code.rst:284
373+
#: ../../c-api/code.rst:286
367374
msgid "no effect (:py:data:`__future__.unicode_literals`)"
368375
msgstr "無效果(:py:data:`__future__.unicode_literals`)"
369376

370-
#: ../../c-api/code.rst:286
377+
#: ../../c-api/code.rst:288
371378
msgid "no effect (:py:data:`__future__.generator_stop`)"
372379
msgstr "無效果(:py:data:`__future__.generator_stop`)"
373380

374-
#: ../../c-api/code.rst:288
381+
#: ../../c-api/code.rst:290
375382
msgid ":py:data:`__future__.annotations`"
376383
msgstr ":py:data:`__future__.annotations`"
377384

378-
#: ../../c-api/code.rst:292
385+
#: ../../c-api/code.rst:294
379386
msgid "Extra information"
380387
msgstr "額外資訊"
381388

382-
#: ../../c-api/code.rst:294
389+
#: ../../c-api/code.rst:296
383390
msgid ""
384391
"To support low-level extensions to frame evaluation, such as external just-"
385392
"in-time compilers, it is possible to attach arbitrary extra data to code "
386393
"objects."
387394
msgstr ""
388395

389-
#: ../../c-api/code.rst:298
396+
#: ../../c-api/code.rst:300
390397
msgid ""
391398
"These functions are part of the unstable C API tier: this functionality is a "
392399
"CPython implementation detail, and the API may change without deprecation "
393400
"warnings."
394401
msgstr ""
395402

396-
#: ../../c-api/code.rst:307
403+
#: ../../c-api/code.rst:309
397404
msgid "Return a new opaque index value used to adding data to code objects."
398405
msgstr ""
399406

400-
#: ../../c-api/code.rst:309
407+
#: ../../c-api/code.rst:311
401408
msgid ""
402409
"You generally call this function once (per interpreter) and use the result "
403410
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
404411
"individual code objects."
405412
msgstr ""
406413

407-
#: ../../c-api/code.rst:313
414+
#: ../../c-api/code.rst:315
408415
msgid ""
409416
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
410417
"called on non-``NULL`` data stored under the new index. Use :c:func:"
411418
"`Py_DecRef` when storing :c:type:`PyObject`."
412419
msgstr ""
413420

414-
#: ../../c-api/code.rst:317
421+
#: ../../c-api/code.rst:319
415422
msgid "as ``_PyEval_RequestCodeExtraIndex``"
416423
msgstr "名為 ``_PyEval_RequestCodeExtraIndex``"
417424

418-
#: ../../c-api/code.rst:321
425+
#: ../../c-api/code.rst:323
419426
msgid ""
420427
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
421428
"is deprecated, but will be available until the API changes."
422429
msgstr ""
423-
"重新命名為 ``PyUnstable_Eval_RequestCodeExtraIndex``。舊的私有名稱已被棄用,但在 API "
424-
"變更前仍可使用。"
430+
"重新命名為 ``PyUnstable_Eval_RequestCodeExtraIndex``。舊的私有名稱已被棄用,"
431+
"但在 API 變更前仍可使用。"
425432

426-
#: ../../c-api/code.rst:330
433+
#: ../../c-api/code.rst:332
427434
msgid ""
428435
"Set *extra* to the extra data stored under the given index. Return 0 on "
429436
"success. Set an exception and return -1 on failure."
430437
msgstr ""
431438

432-
#: ../../c-api/code.rst:333
439+
#: ../../c-api/code.rst:335
433440
msgid ""
434441
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
435442
"without setting an exception."
436443
msgstr ""
437444

438-
#: ../../c-api/code.rst:336
445+
#: ../../c-api/code.rst:338
439446
msgid "as ``_PyCode_GetExtra``"
440447
msgstr "名為 ``_PyCode_GetExtra``"
441448

442-
#: ../../c-api/code.rst:340
449+
#: ../../c-api/code.rst:342
443450
msgid ""
444451
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
445452
"but will be available until the API changes."
446453
msgstr ""
447-
"重新命名為 ``PyUnstable_Code_GetExtra``。舊的私有名稱已被棄用,但在 API 變更前仍可使用。"
454+
"重新命名為 ``PyUnstable_Code_GetExtra``。舊的私有名稱已被棄用,但在 API 變更"
455+
"前仍可使用。"
448456

449-
#: ../../c-api/code.rst:349
457+
#: ../../c-api/code.rst:351
450458
msgid ""
451459
"Set the extra data stored under the given index to *extra*. Return 0 on "
452460
"success. Set an exception and return -1 on failure."
453461
msgstr ""
454462

455-
#: ../../c-api/code.rst:352
463+
#: ../../c-api/code.rst:354
456464
msgid "as ``_PyCode_SetExtra``"
457465
msgstr "名為 ``_PyCode_SetExtra``"
458466

459-
#: ../../c-api/code.rst:356
467+
#: ../../c-api/code.rst:358
460468
msgid ""
461469
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
462470
"but will be available until the API changes."
463471
msgstr ""
464-
"重新命名為 ``PyUnstable_Code_SetExtra``。舊的私有名稱已被棄用,但在 API 變更前仍可使用。"
472+
"重新命名為 ``PyUnstable_Code_SetExtra``。舊的私有名稱已被棄用,但在 API 變更"
473+
"前仍可使用。"
465474

466475
#: ../../c-api/code.rst:3
467476
msgid "object"

c-api/gen.po

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.14\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2026-07-02 00:39+0000\n"
12+
"POT-Creation-Date: 2026-07-08 00:29+0000\n"
1313
"PO-Revision-Date: 2022-10-16 15:33+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -138,9 +138,8 @@ msgid "Deprecated API"
138138
msgstr "已棄用的 API"
139139

140140
#: ../../c-api/gen.rst:94
141-
msgid ""
142-
"This is a :term:`soft deprecated` API that was included in Python's C API by "
143-
"mistake."
141+
#, fuzzy
142+
msgid "This is an API that was included in Python's C API by mistake."
144143
msgstr ""
145144
"這是一個被\\ :term:`軟性棄用 <soft deprecated>`\\ 的 API,它被錯誤地包含在 "
146145
"Python 的 C API 中。"

0 commit comments

Comments
 (0)