Skip to content

Commit 3e61d64

Browse files
sync with cpython 74e102a1
1 parent 4491c4f commit 3e61d64

54 files changed

Lines changed: 11693 additions & 10231 deletions

Some content is hidden

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

‎c-api/bytes.po‎

Lines changed: 4 additions & 4 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-10-15 11:47+0000\n"
9+
"POT-Creation-Date: 2026-10-23 00:25+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:04+0000\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -452,8 +452,8 @@ msgstr ""
452452

453453
#: ../../c-api/bytes.rst:302
454454
msgid ""
455-
"The API is **not thread safe**: a writer should only be used by a single "
456-
"thread at the same time."
455+
"The API is **not thread safe**. To share a writer with multiple threads, a "
456+
"critical section or a lock is needed."
457457
msgstr ""
458458

459459
#: ../../c-api/bytes.rst:305
@@ -627,7 +627,7 @@ msgid ""
627627
msgstr ""
628628

629629
#: ../../c-api/bytes.rst:439
630-
msgid "*size* can be negative to shrink the writer."
630+
msgid "*grow* can be negative to shrink the writer."
631631
msgstr ""
632632

633633
#: ../../c-api/bytes.rst:443

‎c-api/code.po‎

Lines changed: 55 additions & 48 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-10-15 11:47+0000\n"
9+
"POT-Creation-Date: 2026-10-23 00:25+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-"
@@ -217,26 +217,33 @@ msgid ""
217217
msgstr ""
218218

219219
#: ../../c-api/code.rst:181
220+
msgid ""
221+
"Apply the macro *V* to each suffix of :c:type:`PyCodeEvent` constants. "
222+
"Currently expands to ``V(CREATE) V(DESTROY)``. The macro *V* must accept one "
223+
"event name and supply any punctuation needed between expansions."
224+
msgstr ""
225+
226+
#: ../../c-api/code.rst:189
220227
msgid "Type of a code object watcher callback function."
221228
msgstr ""
222229

223-
#: ../../c-api/code.rst:183
230+
#: ../../c-api/code.rst:191
224231
msgid ""
225232
"If *event* is ``PY_CODE_EVENT_CREATE``, then the callback is invoked after "
226233
"*co* has been fully initialized. Otherwise, the callback is invoked before "
227234
"the destruction of *co* takes place, so the prior state of *co* can be "
228235
"inspected."
229236
msgstr ""
230237

231-
#: ../../c-api/code.rst:188
238+
#: ../../c-api/code.rst:196
232239
msgid ""
233240
"If *event* is ``PY_CODE_EVENT_DESTROY``, taking a reference in the callback "
234241
"to the about-to-be-destroyed code object will resurrect it and prevent it "
235242
"from being freed at this time. When the resurrected object is destroyed "
236243
"later, any watcher callbacks active at that time will be called again."
237244
msgstr ""
238245

239-
#: ../../c-api/code.rst:193
246+
#: ../../c-api/code.rst:201
240247
msgid ""
241248
"Users of this API should not rely on internal runtime implementation "
242249
"details. Such details may include, but are not limited to, the exact order "
@@ -246,14 +253,14 @@ msgid ""
246253
"the Python code being executed."
247254
msgstr ""
248255

249-
#: ../../c-api/code.rst:200
256+
#: ../../c-api/code.rst:208
250257
msgid ""
251258
"If the callback sets an exception, it must return ``-1``; this exception "
252259
"will be printed as an unraisable exception using :c:func:"
253260
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
254261
msgstr ""
255262

256-
#: ../../c-api/code.rst:204
263+
#: ../../c-api/code.rst:212
257264
msgid ""
258265
"There may already be a pending exception set on entry to the callback. In "
259266
"this case, the callback should return ``0`` with the same exception still "
@@ -262,209 +269,209 @@ msgid ""
262269
"it before returning."
263270
msgstr ""
264271

265-
#: ../../c-api/code.rst:215
272+
#: ../../c-api/code.rst:223
266273
msgid "This is a function that does nothing."
267274
msgstr ""
268275

269-
#: ../../c-api/code.rst:217
276+
#: ../../c-api/code.rst:225
270277
msgid ""
271278
"Prior to Python 3.10, this function would perform basic optimizations to a "
272279
"code object."
273280
msgstr ""
274281

275-
#: ../../c-api/code.rst:220
282+
#: ../../c-api/code.rst:228
276283
msgid "This function now does nothing."
277284
msgstr ""
278285

279-
#: ../../c-api/code.rst:229
286+
#: ../../c-api/code.rst:237
280287
msgid "Code Object Flags"
281288
msgstr "程式碼物件旗標"
282289

283-
#: ../../c-api/code.rst:231
290+
#: ../../c-api/code.rst:239
284291
msgid ""
285292
"Code objects contain a bit-field of flags, which can be retrieved as the :"
286293
"attr:`~codeobject.co_flags` Python attribute (for example using :c:func:"
287294
"`PyObject_GetAttrString`), and set using a *flags* argument to :c:func:"
288295
"`PyUnstable_Code_New` and similar functions."
289296
msgstr ""
290297

291-
#: ../../c-api/code.rst:236
298+
#: ../../c-api/code.rst:244
292299
msgid ""
293300
"Flags whose names start with ``CO_FUTURE_`` correspond to features normally "
294301
"selectable by :ref:`future statements <future>`. These flags can be used in :"
295302
"c:member:`PyCompilerFlags.cf_flags`. Note that many ``CO_FUTURE_`` flags are "
296303
"mandatory in current versions of Python, and setting them has no effect."
297304
msgstr ""
298305

299-
#: ../../c-api/code.rst:242
306+
#: ../../c-api/code.rst:250
300307
msgid ""
301308
"The following flags are available. For their meaning, see the linked "
302309
"documentation of their Python equivalents."
303310
msgstr ""
304311

305-
#: ../../c-api/code.rst:250
312+
#: ../../c-api/code.rst:258
306313
msgid "Flag"
307314
msgstr "旗標"
308315

309-
#: ../../c-api/code.rst:251
316+
#: ../../c-api/code.rst:259
310317
msgid "Meaning"
311318
msgstr "意義"
312319

313-
#: ../../c-api/code.rst:253
320+
#: ../../c-api/code.rst:261
314321
msgid ":py:data:`inspect.CO_OPTIMIZED`"
315322
msgstr ":py:data:`inspect.CO_OPTIMIZED`"
316323

317-
#: ../../c-api/code.rst:255
324+
#: ../../c-api/code.rst:263
318325
msgid ":py:data:`inspect.CO_NEWLOCALS`"
319326
msgstr ":py:data:`inspect.CO_NEWLOCALS`"
320327

321-
#: ../../c-api/code.rst:257
328+
#: ../../c-api/code.rst:265
322329
msgid ":py:data:`inspect.CO_VARARGS`"
323330
msgstr ":py:data:`inspect.CO_VARARGS`"
324331

325-
#: ../../c-api/code.rst:259
332+
#: ../../c-api/code.rst:267
326333
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
327334
msgstr ":py:data:`inspect.CO_VARKEYWORDS`"
328335

329-
#: ../../c-api/code.rst:261
336+
#: ../../c-api/code.rst:269
330337
msgid ":py:data:`inspect.CO_NESTED`"
331338
msgstr ":py:data:`inspect.CO_NESTED`"
332339

333-
#: ../../c-api/code.rst:263
340+
#: ../../c-api/code.rst:271
334341
msgid ":py:data:`inspect.CO_GENERATOR`"
335342
msgstr ":py:data:`inspect.CO_GENERATOR`"
336343

337-
#: ../../c-api/code.rst:265
344+
#: ../../c-api/code.rst:273
338345
msgid ":py:data:`inspect.CO_COROUTINE`"
339346
msgstr ":py:data:`inspect.CO_COROUTINE`"
340347

341-
#: ../../c-api/code.rst:267
348+
#: ../../c-api/code.rst:275
342349
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
343350
msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
344351

345-
#: ../../c-api/code.rst:269
352+
#: ../../c-api/code.rst:277
346353
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
347354
msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"
348355

349-
#: ../../c-api/code.rst:271
356+
#: ../../c-api/code.rst:279
350357
msgid ":py:data:`inspect.CO_HAS_DOCSTRING`"
351358
msgstr ":py:data:`inspect.CO_HAS_DOCSTRING`"
352359

353-
#: ../../c-api/code.rst:273
360+
#: ../../c-api/code.rst:281
354361
msgid ":py:data:`inspect.CO_METHOD`"
355362
msgstr ":py:data:`inspect.CO_METHOD`"
356363

357-
#: ../../c-api/code.rst:276
364+
#: ../../c-api/code.rst:284
358365
msgid "no effect (:py:data:`__future__.division`)"
359366
msgstr "無效果(:py:data:`__future__.division`)"
360367

361-
#: ../../c-api/code.rst:278
368+
#: ../../c-api/code.rst:286
362369
msgid "no effect (:py:data:`__future__.absolute_import`)"
363370
msgstr "無效果(:py:data:`__future__.absolute_import`)"
364371

365-
#: ../../c-api/code.rst:280
372+
#: ../../c-api/code.rst:288
366373
msgid "no effect (:py:data:`__future__.with_statement`)"
367374
msgstr "無效果(:py:data:`__future__.with_statement`)"
368375

369-
#: ../../c-api/code.rst:282
376+
#: ../../c-api/code.rst:290
370377
msgid "no effect (:py:data:`__future__.print_function`)"
371378
msgstr "無效果(:py:data:`__future__.print_function`)"
372379

373-
#: ../../c-api/code.rst:284
380+
#: ../../c-api/code.rst:292
374381
msgid "no effect (:py:data:`__future__.unicode_literals`)"
375382
msgstr "無效果(:py:data:`__future__.unicode_literals`)"
376383

377-
#: ../../c-api/code.rst:286
384+
#: ../../c-api/code.rst:294
378385
msgid "no effect (:py:data:`__future__.generator_stop`)"
379386
msgstr "無效果(:py:data:`__future__.generator_stop`)"
380387

381-
#: ../../c-api/code.rst:288
388+
#: ../../c-api/code.rst:296
382389
msgid ":py:data:`__future__.annotations`"
383390
msgstr ":py:data:`__future__.annotations`"
384391

385-
#: ../../c-api/code.rst:292
392+
#: ../../c-api/code.rst:300
386393
msgid "Extra information"
387394
msgstr "額外資訊"
388395

389-
#: ../../c-api/code.rst:294
396+
#: ../../c-api/code.rst:302
390397
msgid ""
391398
"To support low-level extensions to frame evaluation, such as external just-"
392399
"in-time compilers, it is possible to attach arbitrary extra data to code "
393400
"objects."
394401
msgstr ""
395402

396-
#: ../../c-api/code.rst:298
403+
#: ../../c-api/code.rst:306
397404
msgid ""
398405
"These functions are part of the unstable C API tier: this functionality is a "
399406
"CPython implementation detail, and the API may change without deprecation "
400407
"warnings."
401408
msgstr ""
402409

403-
#: ../../c-api/code.rst:307
410+
#: ../../c-api/code.rst:315
404411
msgid "Return a new opaque index value used to adding data to code objects."
405412
msgstr ""
406413

407-
#: ../../c-api/code.rst:309
414+
#: ../../c-api/code.rst:317
408415
msgid ""
409416
"You generally call this function once (per interpreter) and use the result "
410417
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
411418
"individual code objects."
412419
msgstr ""
413420

414-
#: ../../c-api/code.rst:313
421+
#: ../../c-api/code.rst:321
415422
msgid ""
416423
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
417424
"called on non-``NULL`` data stored under the new index. Use :c:func:"
418425
"`Py_DecRef` when storing :c:type:`PyObject`."
419426
msgstr ""
420427

421-
#: ../../c-api/code.rst:317
428+
#: ../../c-api/code.rst:325
422429
msgid "as ``_PyEval_RequestCodeExtraIndex``"
423430
msgstr "名為 ``_PyEval_RequestCodeExtraIndex``"
424431

425-
#: ../../c-api/code.rst:321
432+
#: ../../c-api/code.rst:329
426433
msgid ""
427434
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
428435
"is deprecated, but will be available until the API changes."
429436
msgstr ""
430437
"重新命名為 ``PyUnstable_Eval_RequestCodeExtraIndex``。舊的私有名稱已被棄用,"
431438
"但在 API 變更前仍可使用。"
432439

433-
#: ../../c-api/code.rst:330
440+
#: ../../c-api/code.rst:338
434441
msgid ""
435442
"Set *extra* to the extra data stored under the given index. Return 0 on "
436443
"success. Set an exception and return -1 on failure."
437444
msgstr ""
438445

439-
#: ../../c-api/code.rst:333
446+
#: ../../c-api/code.rst:341
440447
msgid ""
441448
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
442449
"without setting an exception."
443450
msgstr ""
444451

445-
#: ../../c-api/code.rst:336
452+
#: ../../c-api/code.rst:344
446453
msgid "as ``_PyCode_GetExtra``"
447454
msgstr "名為 ``_PyCode_GetExtra``"
448455

449-
#: ../../c-api/code.rst:340
456+
#: ../../c-api/code.rst:348
450457
msgid ""
451458
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
452459
"but will be available until the API changes."
453460
msgstr ""
454461
"重新命名為 ``PyUnstable_Code_GetExtra``。舊的私有名稱已被棄用,但在 API 變更"
455462
"前仍可使用。"
456463

457-
#: ../../c-api/code.rst:349
464+
#: ../../c-api/code.rst:357
458465
msgid ""
459466
"Set the extra data stored under the given index to *extra*. Return 0 on "
460467
"success. Set an exception and return -1 on failure."
461468
msgstr ""
462469

463-
#: ../../c-api/code.rst:352
470+
#: ../../c-api/code.rst:360
464471
msgid "as ``_PyCode_SetExtra``"
465472
msgstr "名為 ``_PyCode_SetExtra``"
466473

467-
#: ../../c-api/code.rst:356
474+
#: ../../c-api/code.rst:364
468475
msgid ""
469476
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
470477
"but will be available until the API changes."

‎c-api/conversion.po‎

Lines changed: 19 additions & 2 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-10-15 11:47+0000\n"
12+
"POT-Creation-Date: 2026-10-23 00:25+0000\n"
1313
"PO-Revision-Date: 2023-12-11 18:26+0000\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -276,7 +276,8 @@ msgid ""
276276
"If *ptype* is non-``NULL``, then the value it points to will be set to one "
277277
"of the following constants depending on the type of *val*:"
278278
msgstr ""
279-
"如果 *ptype* 是非 ``NULL``,那麼它指向的值將根據 *val* 的類型被設定為以下常數之一。"
279+
"如果 *ptype* 是非 ``NULL``,那麼它指向的值將根據 *val* 的類型被設定為以下常數"
280+
"之一。"
280281

281282
#: ../../c-api/conversion.rst:163
282283
msgid "*\\*ptype*"
@@ -403,6 +404,22 @@ msgstr ""
403404
msgid "Return the uppercase equivalent of the character *c*."
404405
msgstr ""
405406

407+
#: ../../c-api/conversion.rst:264
408+
msgid "Bit masks"
409+
msgstr ""
410+
411+
#: ../../c-api/conversion.rst:266
412+
msgid ""
413+
"The following constants are bit masks used by the character classification "
414+
"macros above:"
415+
msgstr ""
416+
417+
#: ../../c-api/conversion.rst:277
418+
msgid ""
419+
"Values used internally by the ``Py_IS*`` classification macros above. "
420+
"Exposed for backwards compatibility only."
421+
msgstr ""
422+
406423
#~ msgid ""
407424
#~ "If *ptype* is non-``NULL``, then the value it points to will be set to "
408425
#~ "one of ``Py_DTST_FINITE``, ``Py_DTST_INFINITE``, or ``Py_DTST_NAN``, "

0 commit comments

Comments
 (0)