Skip to content

Commit 96c7eb8

Browse files
sync with cpython dd28db66
1 parent 439e489 commit 96c7eb8

File tree

3 files changed

+346
-266
lines changed

3 files changed

+346
-266
lines changed

c-api/code.po

Lines changed: 57 additions & 43 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-10-25 22:20+0000\n"
9+
"POT-Creation-Date: 2025-11-13 23:16+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-"
@@ -251,191 +251,205 @@ msgid ""
251251
"it before returning."
252252
msgstr ""
253253

254-
#: ../../c-api/code.rst:217
254+
#: ../../c-api/code.rst:216
255+
msgid "This is a :term:`soft deprecated` function that does nothing."
256+
msgstr ""
257+
258+
#: ../../c-api/code.rst:218
259+
msgid ""
260+
"Prior to Python 3.10, this function would perform basic optimizations to a "
261+
"code object."
262+
msgstr ""
263+
264+
#: ../../c-api/code.rst:221
265+
msgid "This function now does nothing."
266+
msgstr ""
267+
268+
#: ../../c-api/code.rst:228
255269
msgid "Code Object Flags"
256270
msgstr "程式碼物件旗標"
257271

258-
#: ../../c-api/code.rst:219
272+
#: ../../c-api/code.rst:230
259273
msgid ""
260274
"Code objects contain a bit-field of flags, which can be retrieved as the :"
261275
"attr:`~codeobject.co_flags` Python attribute (for example using :c:func:"
262276
"`PyObject_GetAttrString`), and set using a *flags* argument to :c:func:"
263277
"`PyUnstable_Code_New` and similar functions."
264278
msgstr ""
265279

266-
#: ../../c-api/code.rst:224
280+
#: ../../c-api/code.rst:235
267281
msgid ""
268282
"Flags whose names start with ``CO_FUTURE_`` correspond to features normally "
269283
"selectable by :ref:`future statements <future>`. These flags can be used in :"
270284
"c:member:`PyCompilerFlags.cf_flags`. Note that many ``CO_FUTURE_`` flags are "
271285
"mandatory in current versions of Python, and setting them has no effect."
272286
msgstr ""
273287

274-
#: ../../c-api/code.rst:230
288+
#: ../../c-api/code.rst:241
275289
msgid ""
276290
"The following flags are available. For their meaning, see the linked "
277291
"documentation of their Python equivalents."
278292
msgstr ""
279293

280-
#: ../../c-api/code.rst:238
294+
#: ../../c-api/code.rst:249
281295
msgid "Flag"
282296
msgstr "旗標"
283297

284-
#: ../../c-api/code.rst:239
298+
#: ../../c-api/code.rst:250
285299
msgid "Meaning"
286300
msgstr "意義"
287301

288-
#: ../../c-api/code.rst:241
302+
#: ../../c-api/code.rst:252
289303
msgid ":py:data:`inspect.CO_OPTIMIZED`"
290304
msgstr ":py:data:`inspect.CO_OPTIMIZED`"
291305

292-
#: ../../c-api/code.rst:243
306+
#: ../../c-api/code.rst:254
293307
msgid ":py:data:`inspect.CO_NEWLOCALS`"
294308
msgstr ":py:data:`inspect.CO_NEWLOCALS`"
295309

296-
#: ../../c-api/code.rst:245
310+
#: ../../c-api/code.rst:256
297311
msgid ":py:data:`inspect.CO_VARARGS`"
298312
msgstr ":py:data:`inspect.CO_VARARGS`"
299313

300-
#: ../../c-api/code.rst:247
314+
#: ../../c-api/code.rst:258
301315
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
302316
msgstr ":py:data:`inspect.CO_VARKEYWORDS`"
303317

304-
#: ../../c-api/code.rst:249
318+
#: ../../c-api/code.rst:260
305319
msgid ":py:data:`inspect.CO_NESTED`"
306320
msgstr ":py:data:`inspect.CO_NESTED`"
307321

308-
#: ../../c-api/code.rst:251
322+
#: ../../c-api/code.rst:262
309323
msgid ":py:data:`inspect.CO_GENERATOR`"
310324
msgstr ":py:data:`inspect.CO_GENERATOR`"
311325

312-
#: ../../c-api/code.rst:253
326+
#: ../../c-api/code.rst:264
313327
msgid ":py:data:`inspect.CO_COROUTINE`"
314328
msgstr ":py:data:`inspect.CO_COROUTINE`"
315329

316-
#: ../../c-api/code.rst:255
330+
#: ../../c-api/code.rst:266
317331
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
318332
msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
319333

320-
#: ../../c-api/code.rst:257
334+
#: ../../c-api/code.rst:268
321335
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
322336
msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"
323337

324-
#: ../../c-api/code.rst:259
338+
#: ../../c-api/code.rst:270
325339
msgid ":py:data:`inspect.CO_HAS_DOCSTRING`"
326340
msgstr ":py:data:`inspect.CO_HAS_DOCSTRING`"
327341

328-
#: ../../c-api/code.rst:261
342+
#: ../../c-api/code.rst:272
329343
msgid ":py:data:`inspect.CO_METHOD`"
330344
msgstr ":py:data:`inspect.CO_METHOD`"
331345

332-
#: ../../c-api/code.rst:264
346+
#: ../../c-api/code.rst:275
333347
msgid "no effect (:py:data:`__future__.division`)"
334348
msgstr "無效果(:py:data:`__future__.division`)"
335349

336-
#: ../../c-api/code.rst:266
350+
#: ../../c-api/code.rst:277
337351
msgid "no effect (:py:data:`__future__.absolute_import`)"
338352
msgstr "無效果(:py:data:`__future__.absolute_import`)"
339353

340-
#: ../../c-api/code.rst:268
354+
#: ../../c-api/code.rst:279
341355
msgid "no effect (:py:data:`__future__.with_statement`)"
342356
msgstr "無效果(:py:data:`__future__.with_statement`)"
343357

344-
#: ../../c-api/code.rst:270
358+
#: ../../c-api/code.rst:281
345359
msgid "no effect (:py:data:`__future__.print_function`)"
346360
msgstr "無效果(:py:data:`__future__.print_function`)"
347361

348-
#: ../../c-api/code.rst:272
362+
#: ../../c-api/code.rst:283
349363
msgid "no effect (:py:data:`__future__.unicode_literals`)"
350364
msgstr "無效果(:py:data:`__future__.unicode_literals`)"
351365

352-
#: ../../c-api/code.rst:274
366+
#: ../../c-api/code.rst:285
353367
msgid "no effect (:py:data:`__future__.generator_stop`)"
354368
msgstr "無效果(:py:data:`__future__.generator_stop`)"
355369

356-
#: ../../c-api/code.rst:276
370+
#: ../../c-api/code.rst:287
357371
msgid ":py:data:`__future__.annotations`"
358372
msgstr ":py:data:`__future__.annotations`"
359373

360-
#: ../../c-api/code.rst:280
374+
#: ../../c-api/code.rst:291
361375
msgid "Extra information"
362376
msgstr "額外資訊"
363377

364-
#: ../../c-api/code.rst:282
378+
#: ../../c-api/code.rst:293
365379
msgid ""
366380
"To support low-level extensions to frame evaluation, such as external just-"
367381
"in-time compilers, it is possible to attach arbitrary extra data to code "
368382
"objects."
369383
msgstr ""
370384

371-
#: ../../c-api/code.rst:286
385+
#: ../../c-api/code.rst:297
372386
msgid ""
373387
"These functions are part of the unstable C API tier: this functionality is a "
374388
"CPython implementation detail, and the API may change without deprecation "
375389
"warnings."
376390
msgstr ""
377391

378-
#: ../../c-api/code.rst:292
392+
#: ../../c-api/code.rst:303
379393
msgid "Return a new opaque index value used to adding data to code objects."
380394
msgstr ""
381395

382-
#: ../../c-api/code.rst:294
396+
#: ../../c-api/code.rst:305
383397
msgid ""
384398
"You generally call this function once (per interpreter) and use the result "
385399
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
386400
"individual code objects."
387401
msgstr ""
388402

389-
#: ../../c-api/code.rst:298
403+
#: ../../c-api/code.rst:309
390404
msgid ""
391405
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
392406
"called on non-``NULL`` data stored under the new index. Use :c:func:"
393407
"`Py_DecRef` when storing :c:type:`PyObject`."
394408
msgstr ""
395409

396-
#: ../../c-api/code.rst:304
410+
#: ../../c-api/code.rst:315
397411
msgid "as ``_PyEval_RequestCodeExtraIndex``"
398412
msgstr ""
399413

400-
#: ../../c-api/code.rst:308
414+
#: ../../c-api/code.rst:319
401415
msgid ""
402416
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
403417
"is deprecated, but will be available until the API changes."
404418
msgstr ""
405419

406-
#: ../../c-api/code.rst:314
420+
#: ../../c-api/code.rst:325
407421
msgid ""
408422
"Set *extra* to the extra data stored under the given index. Return 0 on "
409423
"success. Set an exception and return -1 on failure."
410424
msgstr ""
411425

412-
#: ../../c-api/code.rst:317
426+
#: ../../c-api/code.rst:328
413427
msgid ""
414428
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
415429
"without setting an exception."
416430
msgstr ""
417431

418-
#: ../../c-api/code.rst:322
432+
#: ../../c-api/code.rst:333
419433
msgid "as ``_PyCode_GetExtra``"
420434
msgstr ""
421435

422-
#: ../../c-api/code.rst:326
436+
#: ../../c-api/code.rst:337
423437
msgid ""
424438
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
425439
"but will be available until the API changes."
426440
msgstr ""
427441

428-
#: ../../c-api/code.rst:332
442+
#: ../../c-api/code.rst:343
429443
msgid ""
430444
"Set the extra data stored under the given index to *extra*. Return 0 on "
431445
"success. Set an exception and return -1 on failure."
432446
msgstr ""
433447

434-
#: ../../c-api/code.rst:337
448+
#: ../../c-api/code.rst:348
435449
msgid "as ``_PyCode_SetExtra``"
436450
msgstr ""
437451

438-
#: ../../c-api/code.rst:341
452+
#: ../../c-api/code.rst:352
439453
msgid ""
440454
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
441455
"but will be available until the API changes."
@@ -461,14 +475,14 @@ msgstr "PyCode_New(C 函式)"
461475
msgid "PyCode_NewWithPosOnlyArgs (C function)"
462476
msgstr "PyCode_NewWithPosOnlyArgs(C 函式)"
463477

464-
#: ../../c-api/code.rst:302
478+
#: ../../c-api/code.rst:313
465479
msgid "_PyEval_RequestCodeExtraIndex (C function)"
466480
msgstr "_PyEval_RequestCodeExtraIndex(C 函式)"
467481

468-
#: ../../c-api/code.rst:320
482+
#: ../../c-api/code.rst:331
469483
msgid "_PyCode_GetExtra (C function)"
470484
msgstr "_PyCode_GetExtra(C 函式)"
471485

472-
#: ../../c-api/code.rst:335
486+
#: ../../c-api/code.rst:346
473487
msgid "_PyCode_SetExtra (C function)"
474488
msgstr "_PyCode_SetExtra(C 函式)"

c-api/dict.po

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-11-06 00:14+0000\n"
11+
"POT-Creation-Date: 2025-11-13 23:16+0000\n"
1212
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
1313
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -516,6 +516,66 @@ msgid ""
516516
"it before returning."
517517
msgstr ""
518518

519+
#: ../../c-api/dict.rst:437
520+
#, fuzzy
521+
msgid "Dictionary View Objects"
522+
msgstr "字典物件"
523+
524+
#: ../../c-api/dict.rst:441
525+
#, fuzzy
526+
msgid ""
527+
"Return true if *op* is a view of a set inside a dictionary. This is "
528+
"currently equivalent to :c:expr:`PyDictKeys_Check(op) || "
529+
"PyDictItems_Check(op)`. This function always succeeds."
530+
msgstr ""
531+
"若 *p* 是一個字典物件或字典的子型別實例則會回傳 true。此函式每次都會執行成"
532+
"功。"
533+
534+
#: ../../c-api/dict.rst:448
535+
msgid ""
536+
"Type object for a view of dictionary keys. In Python, this is the type of "
537+
"the object returned by :meth:`dict.keys`."
538+
msgstr ""
539+
540+
#: ../../c-api/dict.rst:454
541+
#, fuzzy
542+
msgid ""
543+
"Return true if *op* is an instance of a dictionary keys view. This function "
544+
"always succeeds."
545+
msgstr ""
546+
"若 *p* 是一個字典物件或字典的子型別實例則會回傳 true。此函式每次都會執行成"
547+
"功。"
548+
549+
#: ../../c-api/dict.rst:460
550+
msgid ""
551+
"Type object for a view of dictionary values. In Python, this is the type of "
552+
"the object returned by :meth:`dict.values`."
553+
msgstr ""
554+
555+
#: ../../c-api/dict.rst:466
556+
#, fuzzy
557+
msgid ""
558+
"Return true if *op* is an instance of a dictionary values view. This "
559+
"function always succeeds."
560+
msgstr ""
561+
"若 *p* 是一個字典物件或字典的子型別實例則會回傳 true。此函式每次都會執行成"
562+
"功。"
563+
564+
#: ../../c-api/dict.rst:472
565+
msgid ""
566+
"Type object for a view of dictionary items. In Python, this is the type of "
567+
"the object returned by :meth:`dict.items`."
568+
msgstr ""
569+
570+
#: ../../c-api/dict.rst:478
571+
#, fuzzy
572+
msgid ""
573+
"Return true if *op* is an instance of a dictionary items view. This function "
574+
"always succeeds."
575+
msgstr ""
576+
"若 *p* 是一個字典物件或字典的子型別實例則會回傳 true。此函式每次都會執行成"
577+
"功。"
578+
519579
#: ../../c-api/dict.rst:8
520580
msgid "object"
521581
msgstr "object(物件)"

0 commit comments

Comments
 (0)