Skip to content

Sync with CPython 3.13 #1133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Aug 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c5fb0c0
sync with cpython cdae923f
github-actions[bot] Jul 28, 2025
d66eab6
sync with cpython d61f8b84
github-actions[bot] Jul 30, 2025
f3fb9ca
sync with cpython 5c16f699
github-actions[bot] Jul 31, 2025
51e85cf
sync with cpython 3b28cb0f
github-actions[bot] Aug 3, 2025
7165835
sync with cpython d29a9c55
github-actions[bot] Aug 4, 2025
1ac1d35
sync with cpython 3a61ddf2
github-actions[bot] Aug 6, 2025
1f672a1
sync with cpython 7762de25
github-actions[bot] Aug 7, 2025
65a5240
sync with cpython 4ad36035
github-actions[bot] Aug 8, 2025
30cbc8d
sync with cpython aa4525fc
github-actions[bot] Aug 9, 2025
c93aff8
sync with cpython a64c9488
github-actions[bot] Aug 10, 2025
79d4b22
sync with cpython c1e1c880
github-actions[bot] Aug 12, 2025
85e3e17
sync with cpython 30194914
github-actions[bot] Aug 13, 2025
91e85c2
sync with cpython 9417ea59
github-actions[bot] Aug 14, 2025
692b4a2
sync with cpython 785b3967
github-actions[bot] Aug 15, 2025
3798cdc
sync with cpython 8d6e1075
github-actions[bot] Aug 16, 2025
e540d58
sync with cpython 133f7bd2
github-actions[bot] Aug 17, 2025
8852a86
sync with cpython 9face218
github-actions[bot] Aug 18, 2025
50fa124
sync with cpython b3725651
github-actions[bot] Aug 19, 2025
90106c9
sync with cpython 511b37a6
github-actions[bot] Aug 20, 2025
38b914c
sync with cpython c04b3de5
github-actions[bot] Aug 21, 2025
b44f59a
sync with cpython 41c2c8f0
github-actions[bot] Aug 22, 2025
41499a2
fix: resolve fuzzy entries
mattwang44 Aug 22, 2025
3510f0e
sync with cpython ab8ffc48
github-actions[bot] Aug 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 119 additions & 21 deletions c-api/code.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-27 07:36+0000\n"
"POT-Creation-Date: 2025-08-03 00:19+0000\n"
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -145,7 +145,7 @@ msgstr ""

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

#: ../../c-api/code.rst:116
msgid ""
Expand Down Expand Up @@ -252,85 +252,183 @@ msgid ""
"it before returning."
msgstr ""

#: ../../c-api/code.rst:215
msgid "Extra information"
#: ../../c-api/code.rst:217
msgid "Code Object Flags"
msgstr "程式碼物件旗標"

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

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

#: ../../c-api/code.rst:230
msgid ""
"The following flags are available. For their meaning, see the linked "
"documentation of their Python equivalents."
msgstr ""

#: ../../c-api/code.rst:238
msgid "Flag"
msgstr "旗標"

#: ../../c-api/code.rst:239
msgid "Meaning"
msgstr "意義"

#: ../../c-api/code.rst:241
msgid ":py:data:`inspect.CO_OPTIMIZED`"
msgstr ":py:data:`inspect.CO_OPTIMIZED`"

#: ../../c-api/code.rst:243
msgid ":py:data:`inspect.CO_NEWLOCALS`"
msgstr ":py:data:`inspect.CO_NEWLOCALS`"

#: ../../c-api/code.rst:245
msgid ":py:data:`inspect.CO_VARARGS`"
msgstr ":py:data:`inspect.CO_VARARGS`"

#: ../../c-api/code.rst:247
msgid ":py:data:`inspect.CO_VARKEYWORDS`"
msgstr ":py:data:`inspect.CO_VARKEYWORDS`"

#: ../../c-api/code.rst:249
msgid ":py:data:`inspect.CO_NESTED`"
msgstr ":py:data:`inspect.CO_NESTED`"

#: ../../c-api/code.rst:251
msgid ":py:data:`inspect.CO_GENERATOR`"
msgstr ":py:data:`inspect.CO_GENERATOR`"

#: ../../c-api/code.rst:253
msgid ":py:data:`inspect.CO_COROUTINE`"
msgstr ":py:data:`inspect.CO_COROUTINE`"

#: ../../c-api/code.rst:255
msgid ":py:data:`inspect.CO_ITERABLE_COROUTINE`"
msgstr ":py:data:`inspect.CO_ITERABLE_COROUTINE`"

#: ../../c-api/code.rst:257
msgid ":py:data:`inspect.CO_ASYNC_GENERATOR`"
msgstr ":py:data:`inspect.CO_ASYNC_GENERATOR`"

#: ../../c-api/code.rst:260
msgid "no effect (:py:data:`__future__.division`)"
msgstr "無效果(:py:data:`__future__.division`)"

#: ../../c-api/code.rst:262
msgid "no effect (:py:data:`__future__.absolute_import`)"
msgstr "無效果(:py:data:`__future__.absolute_import`)"

#: ../../c-api/code.rst:264
msgid "no effect (:py:data:`__future__.with_statement`)"
msgstr "無效果(:py:data:`__future__.with_statement`)"

#: ../../c-api/code.rst:266
msgid "no effect (:py:data:`__future__.print_function`)"
msgstr "無效果(:py:data:`__future__.print_function`)"

#: ../../c-api/code.rst:268
msgid "no effect (:py:data:`__future__.unicode_literals`)"
msgstr "無效果(:py:data:`__future__.unicode_literals`)"

#: ../../c-api/code.rst:270
msgid "no effect (:py:data:`__future__.generator_stop`)"
msgstr "無效果(:py:data:`__future__.generator_stop`)"

#: ../../c-api/code.rst:272
msgid ":py:data:`__future__.annotations`"
msgstr ":py:data:`__future__.annotations`"

#: ../../c-api/code.rst:276
msgid "Extra information"
msgstr "額外資訊"

#: ../../c-api/code.rst:278
msgid ""
"To support low-level extensions to frame evaluation, such as external just-"
"in-time compilers, it is possible to attach arbitrary extra data to code "
"objects."
msgstr ""

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

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

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

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

#: ../../c-api/code.rst:239
#: ../../c-api/code.rst:300
msgid "as ``_PyEval_RequestCodeExtraIndex``"
msgstr ""

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

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

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

#: ../../c-api/code.rst:257
#: ../../c-api/code.rst:318
msgid "as ``_PyCode_GetExtra``"
msgstr ""

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

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

#: ../../c-api/code.rst:272
#: ../../c-api/code.rst:333
msgid "as ``_PyCode_SetExtra``"
msgstr ""

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

#: ../../c-api/code.rst:237
#: ../../c-api/code.rst:298
msgid "_PyEval_RequestCodeExtraIndex (C function)"
msgstr "_PyEval_RequestCodeExtraIndex(C 函式)"

#: ../../c-api/code.rst:255
#: ../../c-api/code.rst:316
msgid "_PyCode_GetExtra (C function)"
msgstr "_PyCode_GetExtra(C 函式)"

#: ../../c-api/code.rst:270
#: ../../c-api/code.rst:331
msgid "_PyCode_SetExtra (C function)"
msgstr "_PyCode_SetExtra(C 函式)"
6 changes: 5 additions & 1 deletion c-api/hash.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:52+0800\n"
"POT-Creation-Date: 2025-08-12 00:17+0000\n"
"PO-Revision-Date: 2024-04-30 00:20+0800\n"
"Last-Translator: Matt Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -62,6 +62,10 @@ msgstr "用於複數虛數部分的乘數。"
msgid "Hash function definition used by :c:func:`PyHash_GetFuncDef`."
msgstr ":c:func:`PyHash_GetFuncDef` 所使用的雜湊函式定義。"

#: ../../c-api/hash.rst:56
msgid "Hash function."
msgstr "雜湊函式。"

#: ../../c-api/hash.rst:60
msgid "Hash function name (UTF-8 encoded string)."
msgstr "雜湊函式名稱(UTF-8 編碼字串)。"
Expand Down
Loading