7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.13\n "
9
9
"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 "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
12
"
Last-Translator :
Liang-Bo Wang <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -145,7 +145,7 @@ msgstr ""
145
145
146
146
#: ../../c-api/code.rst:110
147
147
msgid "Returns ``1`` if the function succeeds and 0 otherwise."
148
- msgstr ""
148
+ msgstr "如果函式成功則回傳 ``1``,否則回傳 ``0``。 "
149
149
150
150
#: ../../c-api/code.rst:116
151
151
msgid ""
@@ -252,85 +252,183 @@ msgid ""
252
252
"it before returning."
253
253
msgstr ""
254
254
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."
257
265
msgstr ""
258
266
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
260
358
msgid ""
261
359
"To support low-level extensions to frame evaluation, such as external just-"
262
360
"in-time compilers, it is possible to attach arbitrary extra data to code "
263
361
"objects."
264
362
msgstr ""
265
363
266
- #: ../../c-api/code.rst:221
364
+ #: ../../c-api/code.rst:282
267
365
msgid ""
268
366
"These functions are part of the unstable C API tier: this functionality is a "
269
367
"CPython implementation detail, and the API may change without deprecation "
270
368
"warnings."
271
369
msgstr ""
272
370
273
- #: ../../c-api/code.rst:227
371
+ #: ../../c-api/code.rst:288
274
372
msgid "Return a new an opaque index value used to adding data to code objects."
275
373
msgstr ""
276
374
277
- #: ../../c-api/code.rst:229
375
+ #: ../../c-api/code.rst:290
278
376
msgid ""
279
377
"You generally call this function once (per interpreter) and use the result "
280
378
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
281
379
"individual code objects."
282
380
msgstr ""
283
381
284
- #: ../../c-api/code.rst:233
382
+ #: ../../c-api/code.rst:294
285
383
msgid ""
286
384
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be "
287
385
"called on non-``NULL`` data stored under the new index. Use :c:func:"
288
386
"`Py_DecRef` when storing :c:type:`PyObject`."
289
387
msgstr ""
290
388
291
- #: ../../c-api/code.rst:239
389
+ #: ../../c-api/code.rst:300
292
390
msgid "as ``_PyEval_RequestCodeExtraIndex``"
293
391
msgstr ""
294
392
295
- #: ../../c-api/code.rst:243
393
+ #: ../../c-api/code.rst:304
296
394
msgid ""
297
395
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
298
396
"is deprecated, but will be available until the API changes."
299
397
msgstr ""
300
398
301
- #: ../../c-api/code.rst:249
399
+ #: ../../c-api/code.rst:310
302
400
msgid ""
303
401
"Set *extra* to the extra data stored under the given index. Return 0 on "
304
402
"success. Set an exception and return -1 on failure."
305
403
msgstr ""
306
404
307
- #: ../../c-api/code.rst:252
405
+ #: ../../c-api/code.rst:313
308
406
msgid ""
309
407
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
310
408
"without setting an exception."
311
409
msgstr ""
312
410
313
- #: ../../c-api/code.rst:257
411
+ #: ../../c-api/code.rst:318
314
412
msgid "as ``_PyCode_GetExtra``"
315
413
msgstr ""
316
414
317
- #: ../../c-api/code.rst:261
415
+ #: ../../c-api/code.rst:322
318
416
msgid ""
319
417
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated, "
320
418
"but will be available until the API changes."
321
419
msgstr ""
322
420
323
- #: ../../c-api/code.rst:267
421
+ #: ../../c-api/code.rst:328
324
422
msgid ""
325
423
"Set the extra data stored under the given index to *extra*. Return 0 on "
326
424
"success. Set an exception and return -1 on failure."
327
425
msgstr ""
328
426
329
- #: ../../c-api/code.rst:272
427
+ #: ../../c-api/code.rst:333
330
428
msgid "as ``_PyCode_SetExtra``"
331
429
msgstr ""
332
430
333
- #: ../../c-api/code.rst:276
431
+ #: ../../c-api/code.rst:337
334
432
msgid ""
335
433
"Renamed to ``PyUnstable_Code_SetExtra``. The old private name is deprecated, "
336
434
"but will be available until the API changes."
@@ -356,14 +454,14 @@ msgstr "PyCode_New(C 函式)"
356
454
msgid "PyCode_NewWithPosOnlyArgs (C function)"
357
455
msgstr "PyCode_NewWithPosOnlyArgs(C 函式)"
358
456
359
- #: ../../c-api/code.rst:237
457
+ #: ../../c-api/code.rst:298
360
458
msgid "_PyEval_RequestCodeExtraIndex (C function)"
361
459
msgstr "_PyEval_RequestCodeExtraIndex(C 函式)"
362
460
363
- #: ../../c-api/code.rst:255
461
+ #: ../../c-api/code.rst:316
364
462
msgid "_PyCode_GetExtra (C function)"
365
463
msgstr "_PyCode_GetExtra(C 函式)"
366
464
367
- #: ../../c-api/code.rst:270
465
+ #: ../../c-api/code.rst:331
368
466
msgid "_PyCode_SetExtra (C function)"
369
467
msgstr "_PyCode_SetExtra(C 函式)"
0 commit comments