Skip to content

Sync with CPython 3.13 #1019

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 79 commits into from
May 4, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
74a9b0c
sync with cpython aae0a1f9
github-actions[bot] Feb 7, 2025
f1509f2
sync with cpython 3cf85905
github-actions[bot] Feb 9, 2025
e0bb202
sync with cpython d26c2fe7
github-actions[bot] Feb 10, 2025
5de1df1
sync with cpython 05263227
github-actions[bot] Feb 11, 2025
c449a08
sync with cpython ee12a348
github-actions[bot] Feb 12, 2025
210ec4e
sync with cpython 4c2a59b7
github-actions[bot] Feb 13, 2025
fcb2900
sync with cpython 7b0543eb
github-actions[bot] Feb 15, 2025
2c07101
sync with cpython 1a7b8c0f
github-actions[bot] Feb 15, 2025
ce60de4
sync with cpython 831695b0
github-actions[bot] Feb 17, 2025
b476a55
chore: resolve fuzzy entries and add simple translations
mattwang44 Feb 17, 2025
bb52eab
sync with cpython fc1c9f88
github-actions[bot] Feb 18, 2025
917b667
sync with cpython 5907cd68
github-actions[bot] Feb 19, 2025
86838b8
sync with cpython d172415a
github-actions[bot] Feb 20, 2025
fd5d0ea
sync with cpython 6cd2f356
github-actions[bot] Feb 21, 2025
863e24b
sync with cpython 8ef89474
github-actions[bot] Feb 22, 2025
5d0fcb4
resolve fuzzy entries and add simple translation
mattwang44 Feb 22, 2025
f57588a
sync with cpython 131e0528
github-actions[bot] Feb 22, 2025
eb0f265
resolve fuzzy entries and add simple translation
mattwang44 Feb 22, 2025
71ff885
sync with cpython 6abec03a
github-actions[bot] Feb 23, 2025
07c60ef
add some simple translation
mattwang44 Feb 23, 2025
6c4aa44
sync with cpython 3161f017
github-actions[bot] Feb 25, 2025
c34ae4f
sync with cpython 7c1b76fc
github-actions[bot] Feb 26, 2025
9f48335
sync with cpython 630dc2bd
github-actions[bot] Feb 27, 2025
0f2f89c
sync with cpython b53065a0
github-actions[bot] Feb 28, 2025
492c2d1
sync with cpython 8edf17f2
github-actions[bot] Mar 2, 2025
6501578
sync with cpython e6dfa9d6
github-actions[bot] Mar 3, 2025
29ce5a8
chore: resolve fuzzy entries and add simple translation
mattwang44 Mar 3, 2025
ce2d407
sync with cpython d00e92bc
github-actions[bot] Mar 4, 2025
157ec81
sync with cpython 07522755
github-actions[bot] Mar 5, 2025
cc3bb33
sync with cpython e285232c
github-actions[bot] Mar 6, 2025
b2f3d1a
sync with cpython e0838a20
github-actions[bot] Mar 7, 2025
429e37e
sync with cpython aef7edaf
github-actions[bot] Mar 9, 2025
bc3747b
sync with cpython edb69578
github-actions[bot] Mar 10, 2025
9c5a547
sync with cpython c7022230
github-actions[bot] Mar 11, 2025
33101c8
sync with cpython 0980e2e3
github-actions[bot] Mar 12, 2025
2552acd
sync with cpython 78f75d33
github-actions[bot] Mar 14, 2025
418c520
sync with cpython 5646f6f7
github-actions[bot] Mar 15, 2025
c8b1c46
sync with cpython b7e15a93
github-actions[bot] Mar 16, 2025
ce8e1ba
sync with cpython 4d7d249a
github-actions[bot] Mar 17, 2025
043a102
sync with cpython 9a434858
github-actions[bot] Mar 18, 2025
dacb762
sync with cpython 31767e61
github-actions[bot] Mar 19, 2025
2599972
sync with cpython 69db2ebf
github-actions[bot] Mar 20, 2025
e116b62
sync with cpython d256cfec
github-actions[bot] Mar 21, 2025
2c59873
sync with cpython b3dccc0c
github-actions[bot] Mar 24, 2025
e326701
sync with cpython c22eef44
github-actions[bot] Mar 25, 2025
da2d504
sync with cpython b0f38760
github-actions[bot] Mar 27, 2025
8e8f0d3
sync with cpython 9118cf77
github-actions[bot] Mar 28, 2025
7fcb769
sync with cpython 1059b0cc
github-actions[bot] Mar 29, 2025
c68313c
sync with cpython 07d4c7e7
github-actions[bot] Mar 30, 2025
032251a
sync with cpython 19187991
github-actions[bot] Mar 31, 2025
95729a3
sync with cpython 24bee4e5
github-actions[bot] Apr 2, 2025
1dbf7ab
sync with cpython 2d909c35
github-actions[bot] Apr 3, 2025
dbe22c2
sync with cpython 7e154bea
github-actions[bot] Apr 6, 2025
bbfae98
sync with cpython 2f1fc0fa
github-actions[bot] Apr 7, 2025
9941207
sync with cpython ac9d7c62
github-actions[bot] Apr 8, 2025
d6f25a9
sync with cpython 099b3013
github-actions[bot] Apr 9, 2025
efddc60
sync with cpython 2b61f6ac
github-actions[bot] Apr 11, 2025
88a5c51
sync with cpython 5be75057
github-actions[bot] Apr 13, 2025
37a90b0
sync with cpython f206b98c
github-actions[bot] Apr 14, 2025
0b66e46
sync with cpython f218549a
github-actions[bot] Apr 15, 2025
0949554
sync with cpython 2a1a337d
github-actions[bot] Apr 16, 2025
b9ff111
sync with cpython db7ad1c8
github-actions[bot] Apr 17, 2025
38a8a20
sync with cpython 83cb89b9
github-actions[bot] Apr 19, 2025
c985d7a
sync with cpython 47c8df61
github-actions[bot] Apr 20, 2025
66f8df1
sync with cpython 62663bfe
github-actions[bot] Apr 21, 2025
8203b80
Merge branch '3.13' into cron/sync/3.13
mattwang44 Apr 21, 2025
b94c058
chore: resolve fuzzy entries and add simple translation
mattwang44 Apr 21, 2025
0a9f020
sync with cpython b220c1c0
github-actions[bot] Apr 24, 2025
797f33a
fix: resolve fuzzy entries
mattwang44 Apr 24, 2025
06a6c46
sync with cpython 99539719
github-actions[bot] Apr 25, 2025
a4680b7
sync with cpython 08772229
github-actions[bot] Apr 26, 2025
2a6d7fa
sync with cpython fdcaaad1
github-actions[bot] Apr 27, 2025
f814836
sync with cpython ca46ec85
github-actions[bot] Apr 29, 2025
ee0d10a
sync with cpython 7998f998
github-actions[bot] Apr 30, 2025
eac9683
sync with cpython 4f006ffd
github-actions[bot] May 1, 2025
b267ba4
sync with cpython f7d1109a
github-actions[bot] May 2, 2025
4f91e65
sync with cpython 8a05dbe0
github-actions[bot] May 3, 2025
4e622c7
sync with cpython e090f8e3
github-actions[bot] May 4, 2025
9d54d7d
fix: resolve fuzzy entries
mattwang44 May 4, 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
Prev Previous commit
Next Next commit
fix: resolve fuzzy entries
  • Loading branch information
mattwang44 committed Apr 24, 2025
commit 797f33ab90b056cf8dc16fa43325be2a767d3308
75 changes: 36 additions & 39 deletions c-api/complex.po
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數之和

#: ../../c-api/complex.rst:49
msgid ""
"Return the difference between two complex numbers, using the C :c:type:"
"`Py_complex` representation."
"Return the difference between two complex numbers, using the "
"C :c:type:`Py_complex` representation."
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數間的差。"

#: ../../c-api/complex.rst:55
msgid ""
"Return the negation of the complex number *num*, using the C :c:type:"
"`Py_complex` representation."
"Return the negation of the complex number *num*, using the "
"C :c:type:`Py_complex` representation."
msgstr ""
"以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。"

Expand All @@ -106,16 +106,16 @@ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數的商

#: ../../c-api/complex.rst:70
msgid ""
"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :"
"c:macro:`!EDOM`."
"If *divisor* is null, this method returns zero and sets :c:data:`errno` "
"to :c:macro:`!EDOM`."
msgstr ""
"如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定為 :c:macro:"
"`!EDOM`。"
"如果 *divisor* 為 null,則此方法會回傳零並將 :c:data:`errno` 設定"
"為 :c:macro:`!EDOM`。"

#: ../../c-api/complex.rst:76
msgid ""
"Return the exponentiation of *num* by *exp*, using the C :c:type:"
"`Py_complex` representation."
"Return the exponentiation of *num* by *exp*, using the "
"C :c:type:`Py_complex` representation."
msgstr ""
"以 C 的 :c:type:`Py_complex` 表示形式來回傳 *num* 的 *exp* 次方的結果。"

Expand All @@ -141,13 +141,13 @@ msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python complex number "
"type. It is the same object as :class:`complex` in the Python layer."
msgstr ""
"這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中的 :"
"class:`complex` 是同一個物件。"
"這個 :c:type:`PyTypeObject` 的實例代表 Python 複數型別。它與 Python 層中"
"的 :class:`complex` 是同一個物件。"

#: ../../c-api/complex.rst:100
msgid ""
"Return true if its argument is a :c:type:`PyComplexObject` or a subtype of :"
"c:type:`PyComplexObject`. This function always succeeds."
"Return true if its argument is a :c:type:`PyComplexObject` or a subtype "
"of :c:type:`PyComplexObject`. This function always succeeds."
msgstr ""
"如果其引數是一個 :c:type:`PyComplexObject` 或者是 :c:type:`PyComplexObject` "
"的子型別,則會回傳 true。這個函式不會失敗。"
Expand Down Expand Up @@ -181,25 +181,24 @@ msgid "Return the real part of *op* as a C :c:expr:`double`."
msgstr "以 C 的 :c:expr:`double` 形式回傳 *op* 的實部。"

#: ../../c-api/complex.rst:126
#, fuzzy
msgid ""
"If *op* is not a Python complex number object but has a :meth:`~object."
"__complex__` method, this method will first be called to convert *op* to a "
"Python complex number object. If :meth:`!__complex__` is not defined then "
"it falls back to call :c:func:`PyFloat_AsDouble` and returns its result."
"If *op* is not a Python complex number object but has "
"a :meth:`~object.__complex__` method, this method will first be called to "
"convert *op* to a Python complex number object. If :meth:`!__complex__` is "
"not defined then it falls back to call :c:func:`PyFloat_AsDouble` and "
"returns its result."
msgstr ""
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
"未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
"定義,則它將繼續回退為 :meth:`~object.__index__`。"
"未定義,那麼它會回退到呼叫 :func:`PyFloat_AsDouble` 並回傳其結果。"

#: ../../c-api/complex.rst:132 ../../c-api/complex.rst:148
msgid ""
"Upon failure, this method returns ``-1.0`` with an exception set, so one "
"should call :c:func:`PyErr_Occurred` to check for errors."
msgstr ""
"失敗時,此方法回傳 ``-1.0`` 並設定例外,因此應該呼叫 :c:func:"
"`PyErr_Occurred` 來檢查錯誤。"
"失敗時,此方法回傳 ``-1.0`` 並設定例外,因此應該呼"
"叫 :c:func:`PyErr_Occurred` 來檢查錯誤。"

#: ../../c-api/complex.rst:135 ../../c-api/complex.rst:151
msgid "Use :meth:`~object.__complex__` if available."
Expand All @@ -210,30 +209,28 @@ msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
msgstr "將 *op* 的虛部作為 C 的 :c:expr:`double` 回傳。"

#: ../../c-api/complex.rst:142
#, fuzzy
msgid ""
"If *op* is not a Python complex number object but has a :meth:`~object."
"__complex__` method, this method will first be called to convert *op* to a "
"Python complex number object. If :meth:`!__complex__` is not defined then "
"it falls back to call :c:func:`PyFloat_AsDouble` and returns ``0.0`` on "
"success."
"If *op* is not a Python complex number object but has "
"a :meth:`~object.__complex__` method, this method will first be called to "
"convert *op* to a Python complex number object. If :meth:`!__complex__` is "
"not defined then it falls back to call :c:func:`PyFloat_AsDouble` and "
"returns ``0.0`` on success."
msgstr ""
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
"未定義,那麼它會回退到 :meth:`~object.__float__`。如果 :meth:`!__float__` 未"
"定義,則它將繼續回退為 :meth:`~object.__index__`。"
"未定義,那麼它會回退到呼叫 :func:`PyFloat_AsDouble` 並於成功時回傳 ``0.0``。"

#: ../../c-api/complex.rst:156
msgid "Return the :c:type:`Py_complex` value of the complex number *op*."
msgstr "回傳複數 *op* 的 :c:type:`Py_complex` 值。"

#: ../../c-api/complex.rst:158
msgid ""
"If *op* is not a Python complex number object but has a :meth:`~object."
"__complex__` method, this method will first be called to convert *op* to a "
"Python complex number object. If :meth:`!__complex__` is not defined then "
"it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not "
"defined then it falls back to :meth:`~object.__index__`."
"If *op* is not a Python complex number object but has "
"a :meth:`~object.__complex__` method, this method will first be called to "
"convert *op* to a Python complex number object. If :meth:`!__complex__` is "
"not defined then it falls back to :meth:`~object.__float__`. If :meth:`!"
"__float__` is not defined then it falls back to :meth:`~object.__index__`."
msgstr ""
"如果 *op* 不是 Python 複數物件,但有一個 :meth:`~object.__complex__` 方法,則"
"首先會呼叫該方法將 *op* 轉換為 Python 複數物件。如果 :meth:`!__complex__` 並"
Expand All @@ -242,9 +239,9 @@ msgstr ""

#: ../../c-api/complex.rst:164
msgid ""
"Upon failure, this method returns :c:type:`Py_complex` with :c:member:"
"`~Py_complex.real` set to ``-1.0`` and with an exception set, so one should "
"call :c:func:`PyErr_Occurred` to check for errors."
"Upon failure, this method returns :c:type:`Py_complex` "
"with :c:member:`~Py_complex.real` set to ``-1.0`` and with an exception set, "
"so one should call :c:func:`PyErr_Occurred` to check for errors."
msgstr ""
"失敗時,此方法回傳 :c:type:`Py_complex` 並將 :c:member:`~Py_complex.real` 設"
"為 ``-1.0``,並設定例外,因此應該呼叫 :c:func:`PyErr_Occurred` 來檢查錯誤。"
Expand Down
3 changes: 1 addition & 2 deletions c-api/hash.po
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ msgid "PyHash API"
msgstr "PyHash API"

#: ../../c-api/hash.rst:6
#, fuzzy
msgid ""
"See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`."
msgstr "另請參閱 :c:member:`PyTypeObject.tp_hash` 成員。"
msgstr "另請參閱 :c:member:`PyTypeObject.tp_hash` 成員和 :ref:`numeric-hash`。"

#: ../../c-api/hash.rst:10
msgid "Hash value type: signed integer."
Expand Down
47 changes: 24 additions & 23 deletions c-api/list.po
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python list type. "
"This is the same object as :class:`list` in the Python layer."
msgstr ""
"此 :c:type:`PyTypeObject` 實例表示 Python 的 list 型別。這與 Python 層中的 :"
"class:`list` 是同一個物件。"
"此 :c:type:`PyTypeObject` 實例表示 Python 的 list 型別。這與 Python 層中"
"的 :class:`list` 是同一個物件。"

#: ../../c-api/list.rst:24
msgid ""
Expand All @@ -57,20 +57,20 @@ msgid "Return a new list of length *len* on success, or ``NULL`` on failure."
msgstr "成功時回傳長度為 *len* 的新串列,失敗時回傳 ``NULL``。"

#: ../../c-api/list.rst:40
#, fuzzy
msgid ""
"If *len* is greater than zero, the returned list object's items are set to "
"``NULL``. Thus you cannot use abstract API functions such as :c:func:"
"`PySequence_SetItem` or expose the object to Python code before setting all "
"items to a real object with :c:func:`PyList_SetItem` or :c:func:"
"`PyList_SET_ITEM()`. The following APIs are safe APIs before the list is "
"fully initialized: :c:func:`PyList_SetItem()` and :c:func:"
"`PyList_SET_ITEM()`."
"``NULL``. Thus you cannot use abstract API functions such "
"as :c:func:`PySequence_SetItem` or expose the object to Python code before "
"setting all items to a real object with :c:func:`PyList_SetItem` "
"or :c:func:`PyList_SET_ITEM()`. The following APIs are safe APIs before the "
"list is fully initialized: :c:func:`PyList_SetItem()` "
"and :c:func:`PyList_SET_ITEM()`."
msgstr ""
"如果 *len* 大於零,則回傳的串列物件之項目將被設定為 ``NULL``。因此,在使用 :"
"c:func:`PyList_SetItem` 來將所有項目設定為一個真實物件前,你無法使用像是 :c:"
"func:`PySequence_SetItem` 的使用抽象 API 函式,也不能將物件暴露 (expose) 給 "
"Python 程式碼。"
"如果 *len* 大於零,則回傳的串列物件之項目將被設定為 ``NULL``。因此,在使"
"用 :c:func:`PyList_SetItem` 或 :c:func:`PyList_SET_ITEM()` 來將所有項目設定為"
"一個真實物件前,你無法使用像是 :c:func:`PySequence_SetItem` 的抽象 API 函式,"
"也不能將物件暴露 (expose) 給 Python 程式碼。以下 API 在串列完全初始化之前是安"
"全的::c:func:`PyList_SetItem()` 和 :c:func:`PyList_SET_ITEM()`。"

#: ../../c-api/list.rst:53
msgid ""
Expand All @@ -83,16 +83,15 @@ msgid "Similar to :c:func:`PyList_Size`, but without error checking."
msgstr "與 :c:func:`PyList_Size` 類似,但沒有錯誤檢查。"

#: ../../c-api/list.rst:64
#, fuzzy
msgid ""
"Return the object at position *index* in the list pointed to by *list*. The "
"position must be non-negative; indexing from the end of the list is not "
"supported. If *index* is out of bounds (:code:`<0 or >=len(list)`), return "
"``NULL`` and set an :exc:`IndexError` exception."
msgstr ""
"回傳 *list* 指向的串列中位於 *index* 位置的物件。該位置不可為負數;並不支援從"
"串列尾末開始索引。如果 *index* 超出邊界範圍<0 >=len(list))則回傳 "
"``NULL`` 並設定 :exc:`IndexError` 例外。"
"串列尾末開始索引。如果 *index* 超出邊界範圍 (:code:`<0 or >=len(list)`) 則回"
"``NULL`` 並設定 :exc:`IndexError` 例外。"

#: ../../c-api/list.rst:74
msgid ""
Expand Down Expand Up @@ -130,15 +129,17 @@ msgstr ""

#: ../../c-api/list.rst:100
msgid ""
"Bounds checking is performed as an assertion if Python is built in :ref:"
"`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`."
"Bounds checking is performed as an assertion if Python is built "
"in :ref:`debug mode <debug-build>` or :option:`with assertions <--with-"
"assertions>`."
msgstr ""

#: ../../c-api/list.rst:106
msgid ""
"This macro \"steals\" a reference to *item*, and, unlike :c:func:"
"`PyList_SetItem`, does *not* discard a reference to any item that is being "
"replaced; any reference in *list* at position *i* will be leaked."
"This macro \"steals\" a reference to *item*, and, "
"unlike :c:func:`PyList_SetItem`, does *not* discard a reference to any item "
"that is being replaced; any reference in *list* at position *i* will be "
"leaked."
msgstr ""
"該巨集「竊取」對 *item* 的參照,並且與 :c:func:`PyList_SetItem` 不同的是,它"
"\\ *不會*\\ 丟棄對任意被替換項目的參照;*list* 中位置 *i* 的任何參照都將被洩"
Expand Down Expand Up @@ -226,8 +227,8 @@ msgid ""
"Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on "
"failure. This is the equivalent of ``list.reverse()``."
msgstr ""
"原地反轉 *list* 的項目。成功時回傳 ``0``,失敗時回傳 ``-1``。這相當於 ``list."
"reverse()``。"
"原地反轉 *list* 的項目。成功時回傳 ``0``,失敗時回傳 ``-1``。這相當於 "
"``list.reverse()``。"

#: ../../c-api/list.rst:182
msgid ""
Expand Down
3 changes: 1 addition & 2 deletions c-api/none.po
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ msgid ""
msgstr ""

#: ../../c-api/none.rst:21
#, fuzzy
msgid ":c:data:`Py_None` is :term:`immortal`."
msgstr ":c:data:`Py_None` 為不滅的 (immortal)。"
msgstr ":c:data:`Py_None` 為\\ :term:`不滅的 (immortal) <immortal>`。"

#: ../../c-api/none.rst:26
msgid "Return :c:data:`Py_None` from a function."
Expand Down
Loading
Loading