Skip to content

Sync with CPython 3.12 #696

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 24 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7127c70
sync with cpython e0c2bf46
github-actions[bot] Nov 6, 2023
51bd447
sync with cpython d35c9456
github-actions[bot] Nov 8, 2023
188eaeb
sync with cpython 4f976c3b
github-actions[bot] Nov 9, 2023
82ef5ae
sync with cpython 5a8e6f8b
github-actions[bot] Nov 10, 2023
04c7748
sync with cpython 2c6000cb
github-actions[bot] Nov 11, 2023
af3e0c9
sync with cpython 02fdb420
github-actions[bot] Nov 14, 2023
3811f6f
sync with cpython 77f59bf6
github-actions[bot] Nov 16, 2023
59d96e0
sync with cpython 8e374450
github-actions[bot] Nov 17, 2023
f825bbd
sync with cpython 0ea64544
github-actions[bot] Nov 18, 2023
254df9f
sync with cpython d4fd165a
github-actions[bot] Nov 20, 2023
7721745
sync with cpython 298e57ab
github-actions[bot] Nov 22, 2023
e1e1d89
sync with cpython 86db104e
github-actions[bot] Nov 24, 2023
09e0c8a
sync with cpython 103728dc
github-actions[bot] Nov 25, 2023
0e28b5b
sync with cpython b478c5e5
github-actions[bot] Nov 26, 2023
65a7c9e
sync with cpython d7a78833
github-actions[bot] Nov 27, 2023
71818a2
sync with cpython 4f71f168
github-actions[bot] Nov 28, 2023
c21d91e
sync with cpython 749c8fda
github-actions[bot] Nov 30, 2023
4d0aedf
sync with cpython 4c9da4c9
github-actions[bot] Dec 1, 2023
c72d86c
sync with cpython e3c79477
github-actions[bot] Dec 3, 2023
6906cdc
sync with cpython da73a5cc
github-actions[bot] Dec 4, 2023
f50b07e
sync with cpython f49d0732
github-actions[bot] Dec 4, 2023
bcb6610
sync with cpython 85bbfa8a
github-actions[bot] Dec 5, 2023
46f6dd8
sync with cpython 5720f7fc
github-actions[bot] Dec 6, 2023
5f03e18
fix: resolve fuzzy entries
mattwang44 Dec 6, 2023
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
15 changes: 8 additions & 7 deletions c-api/bytearray.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 bytearray "
"type; it is the same object as :class:`bytearray` in the Python layer."
msgstr ""
"這個 :c:type:`PyTypeObject` 的實例代表了 Python 的位元組陣列型別;在 Python "
"中的 :class:`bytearray` 為同一個物件。"
"這個 :c:type:`PyTypeObject` 的實例代表了 Python 的位元組陣列型別;在 Python "
"層中的 :class:`bytearray` 為同一個物件。"

#: ../../c-api/bytearray.rst:23
msgid "Type check macros"
Expand All @@ -45,16 +45,16 @@ msgid ""
"Return true if the object *o* is a bytearray object or an instance of a "
"subtype of the bytearray type. This function always succeeds."
msgstr ""
"如果物件 *o* 是一個位元組陣列物件,或者是位元組陣列型別的子型別的實例,則回傳真"
"。此函式總是會成功執行。"
"如果物件 *o* 是一個位元組陣列物件,或者是位元組陣列型別的子型別的實例,則回傳"
"真值。此函式總是會成功執行。"

#: ../../c-api/bytearray.rst:33
msgid ""
"Return true if the object *o* is a bytearray object, but not an instance of "
"a subtype of the bytearray type. This function always succeeds."
msgstr ""
"如果物件 *o* 是一個位元組陣列物件,但不是位元組陣列型別的子型別的實例,則回傳真"
"。此函式總是會成功執行。"
"如果物件 *o* 是一個位元組陣列物件,但不是位元組陣列型別的子型別的實例,則回傳"
"真值。此函式總是會成功執行。"

#: ../../c-api/bytearray.rst:38
msgid "Direct API functions"
Expand All @@ -73,7 +73,8 @@ msgid ""
"Create a new bytearray object from *string* and its length, *len*. On "
"failure, ``NULL`` is returned."
msgstr ""
"從 *string* 及其長度 *len* 建立一個新的位元組陣列物件。若失敗則回傳 ``NULL``。"
"從 *string* 及其長度 *len* 建立一個新的位元組陣列物件。若失敗則回傳 "
"``NULL``。"

#: ../../c-api/bytearray.rst:54
msgid ""
Expand Down
9 changes: 5 additions & 4 deletions c-api/complex.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ msgid ""
"return them as results do so *by value* rather than dereferencing them "
"through pointers. This is consistent throughout the API."
msgstr ""
"請注意,接受這些結構作為參數並將它們作為結果回傳的函式是\\ *按值 (by "
"value)* 執行的,而不是透過指標取消參照 (dereference) 它們。這在整個 API "
"都是一致的。"
"請注意,接受這些結構作為參數並將它們作為結果回傳的函式是\\ *按值 (by value)* "
"執行的,而不是透過指標取消參照 (dereference) 它們。這在整個 API 中都是一致"
"。"

#: ../../c-api/complex.rst:26
msgid ""
Expand Down Expand Up @@ -73,7 +73,8 @@ msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳兩個複數間的
msgid ""
"Return the negation of the complex number *num*, using the C :c:type:"
"`Py_complex` representation."
msgstr "以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。"
msgstr ""
"以 C 的 :c:type:`Py_complex` 表示形式來回傳複數 *num* 的相反數 (negation)。"

#: ../../c-api/complex.rst:57
msgid ""
Expand Down
28 changes: 14 additions & 14 deletions c-api/datetime.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ msgstr ""
":mod:`datetime` 模組提供各種日期和時間物件。在使用任何這些函式之前,必須將標"
"頭檔 :file:`datetime.h` 引入於原始碼中(請注意,:file:`Python.h` 並無引入該標"
"頭檔),且巨集 :c:macro:`!PyDateTime_IMPORT` 必須被調用,而這通常作為模組初始"
"化函式的一部分。該巨集將指向 C 結構的指標放入靜態變數 :c:data:"
"`!PyDateTimeAPI` 中,該變數會被以下巨集使用。"
"化函式的一部分。該巨集將指向 C 結構的指標放入靜態變數 :c:data:`!"
"PyDateTimeAPI` 中,該變數會被以下巨集使用。"

#: ../../c-api/datetime.rst:18
msgid "This subtype of :c:type:`PyObject` represents a Python date object."
Expand Down Expand Up @@ -112,9 +112,9 @@ msgid ""
"of :c:data:`!PyDateTime_DateType`. *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"如果 *ob* 的型別為 :c:data:`PyDateTime_DateType` 或 :c:data:"
"`!PyDateTime_DateType` 的子型別,則回傳 true。 *ob* 不得為 ``NULL``。這個函式"
"一定會執行成功。"
"如果 *ob* 的型別為 :c:data:`PyDateTime_DateType` 或 :c:data:`!"
"PyDateTime_DateType` 的子型別,則回傳 true。 *ob* 不得為 ``NULL``。這個函式一"
"定會執行成功。"

#: ../../c-api/datetime.rst:80
msgid ""
Expand All @@ -130,8 +130,8 @@ msgid ""
"subtype of :c:data:`!PyDateTime_DateTimeType`. *ob* must not be ``NULL``. "
"This function always succeeds."
msgstr ""
"如果 *ob* 的型別為 :c:data:`PyDateTime_DateTimeType` 或 :c:data:"
"`!PyDateTime_DateTimeType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函"
"如果 *ob* 的型別為 :c:data:`PyDateTime_DateTimeType` 或 :c:data:`!"
"PyDateTime_DateTimeType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函"
"式一定會執行成功。"

#: ../../c-api/datetime.rst:93
Expand All @@ -148,8 +148,8 @@ msgid ""
"of :c:data:`!PyDateTime_TimeType`. *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"如果 *ob* 的型別為 :c:data:`PyDateTime_TimeType` 或 :c:data:"
"`!PyDateTime_TimeType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式一"
"如果 *ob* 的型別為 :c:data:`PyDateTime_TimeType` 或 :c:data:`!"
"PyDateTime_TimeType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式一"
"定會執行成功。"

#: ../../c-api/datetime.rst:106
Expand All @@ -166,9 +166,9 @@ msgid ""
"of :c:data:`!PyDateTime_DeltaType`. *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"如果 *ob* 的型別為 :c:data:`PyDateTime_DeltaType` 或 :c:data:"
"`!PyDateTime_DeltaType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式"
"一定會執行成功。"
"如果 *ob* 的型別為 :c:data:`PyDateTime_DeltaType` 或 :c:data:`!"
"PyDateTime_DeltaType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式一"
"定會執行成功。"

#: ../../c-api/datetime.rst:119
msgid ""
Expand All @@ -184,8 +184,8 @@ msgid ""
"of :c:data:`!PyDateTime_TZInfoType`. *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"如果 *ob* 的型別為 :c:data:`PyDateTime_TZInfoType` 或 :c:data:"
"`!PyDateTime_TZInfoType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式"
"如果 *ob* 的型別為 :c:data:`PyDateTime_TZInfoType` 或 :c:data:`!"
"PyDateTime_TZInfoType` 的子型別,則回傳 true。*ob* 不得為 ``NULL``。這個函式"
"一定會執行成功。"

#: ../../c-api/datetime.rst:132
Expand Down
40 changes: 20 additions & 20 deletions c-api/frame.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-17 17:39+0800\n"
"POT-Creation-Date: 2023-12-06 00:03+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -19,15 +19,15 @@ msgstr ""

#: ../../c-api/frame.rst:4
msgid "Frame Objects"
msgstr ""
msgstr "Frame 物件"

#: ../../c-api/frame.rst:8
msgid "The C structure of the objects used to describe frame objects."
msgstr ""
msgstr "用來描述 frame 物件的 C 結構。"

#: ../../c-api/frame.rst:10
msgid "There are no public members in this structure."
msgstr ""
msgstr "在這個結構中沒有公開的成員。"

#: ../../c-api/frame.rst:12
msgid ""
Expand Down Expand Up @@ -76,20 +76,20 @@ msgid ""
msgstr ""

#: ../../c-api/frame.rst:53
msgid "Get the *frame*'s ``f_builtins`` attribute."
msgstr ""
msgid "Get the *frame*'s :attr:`~frame.f_builtins` attribute."
msgstr "取得 *frame* 的 :attr:`~frame.f_builtins` 屬性。"

#: ../../c-api/frame.rst:55 ../../c-api/frame.rst:86
msgid "Return a :term:`strong reference`. The result cannot be ``NULL``."
msgstr ""
msgstr "回傳 :term:`strong reference`。結果不能為 ``NULL``。"

#: ../../c-api/frame.rst:62
msgid "Get the *frame* code."
msgstr ""

#: ../../c-api/frame.rst:64 ../../c-api/frame.rst:125
msgid "Return a :term:`strong reference`."
msgstr ""
msgstr "回傳 :term:`strong reference`。"

#: ../../c-api/frame.rst:66
msgid "The result (frame code) cannot be ``NULL``."
Expand All @@ -104,40 +104,40 @@ msgstr ""

#: ../../c-api/frame.rst:77
msgid "Return a :term:`strong reference`, or ``NULL``."
msgstr ""
msgstr "回傳 :term:`strong reference` 或 ``NULL``。"

#: ../../c-api/frame.rst:84
msgid "Get the *frame*'s ``f_globals`` attribute."
msgstr ""
msgid "Get the *frame*'s :attr:`~frame.f_globals` attribute."
msgstr "取得 *frame* 的 :attr:`~frame.f_globals` 屬性。"

#: ../../c-api/frame.rst:93
msgid "Get the *frame*'s ``f_lasti`` attribute."
msgstr ""
msgid "Get the *frame*'s :attr:`~frame.f_lasti` attribute."
msgstr "取得 *frame* 的 :attr:`~frame.f_lasti` 屬性。"

#: ../../c-api/frame.rst:95
msgid "Returns -1 if ``frame.f_lasti`` is ``None``."
msgstr ""
msgstr "如果 ``frame.f_lasti`` 是 ``None`` 則回傳 -1。"

#: ../../c-api/frame.rst:102
msgid "Get the variable *name* of *frame*."
msgstr ""
msgstr "取得 *frame* 的變數 *name*。"

#: ../../c-api/frame.rst:104
msgid "Return a :term:`strong reference` to the variable value on success."
msgstr ""
msgstr "在成功時回傳變數值的 :term:`strong reference`。"

#: ../../c-api/frame.rst:105
msgid ""
"Raise :exc:`NameError` and return ``NULL`` if the variable does not exist."
msgstr ""
msgstr "如果變數不存在,則引發 :exc:`NameError` 並回傳 ``NULL``。"

#: ../../c-api/frame.rst:106
msgid "Raise an exception and return ``NULL`` on error."
msgstr ""
msgstr "在錯誤時引發例外並回傳 ``NULL``。"

#: ../../c-api/frame.rst:108
msgid "*name* type must be a :class:`str`."
msgstr ""
msgstr "*name* 的型別必須是 :class:`str`。"

#: ../../c-api/frame.rst:115
msgid ""
Expand All @@ -146,7 +146,7 @@ msgid ""
msgstr ""

#: ../../c-api/frame.rst:123
msgid "Get the *frame*'s ``f_locals`` attribute (:class:`dict`)."
msgid "Get the *frame*'s :attr:`~frame.f_locals` attribute (:class:`dict`)."
msgstr ""

#: ../../c-api/frame.rst:132
Expand Down
Loading