Skip to content
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

Sync with CPython 3.12 #22

Draft
wants to merge 138 commits into
base: 3.12
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
fb4742a
sync with cpython a423ddbd
github-actions[bot] Jul 18, 2023
11084c9
sync with cpython 0c106a91
github-actions[bot] Jul 19, 2023
cd02b7d
sync with cpython c16cf9b6
github-actions[bot] Jul 20, 2023
c593b5d
sync with cpython c1fd76e1
github-actions[bot] Jul 21, 2023
825efe1
sync with cpython d0176ed9
github-actions[bot] Jul 22, 2023
c118f95
sync with cpython d87d67b9
github-actions[bot] Jul 23, 2023
c3bdbb2
sync with cpython 84c5676e
github-actions[bot] Jul 24, 2023
79c2d35
sync with cpython 5fd028b6
github-actions[bot] Jul 25, 2023
d2d6c48
sync with cpython 3d15c8b8
github-actions[bot] Jul 26, 2023
d005a0c
sync with cpython 6bbcd792
github-actions[bot] Jul 27, 2023
4c0921e
sync with cpython 2827ad2f
github-actions[bot] Jul 28, 2023
53f9424
sync with cpython 80aebd54
github-actions[bot] Jul 29, 2023
dbbf411
sync with cpython d514e143
github-actions[bot] Jul 29, 2023
e7e7a57
sync with cpython e3b5ed7b
github-actions[bot] Jul 30, 2023
f6348f2
sync with cpython 0b3d6381
github-actions[bot] Jul 31, 2023
c82dc87
sync with cpython fc4532a5
github-actions[bot] Aug 1, 2023
6050920
sync with cpython 0e7a4f73
github-actions[bot] Aug 5, 2023
0e7e988
sync with cpython ab1988d5
github-actions[bot] Aug 7, 2023
42c66e0
sync with cpython e5582bdb
github-actions[bot] Aug 8, 2023
c4251e3
sync with cpython aa2ecef2
github-actions[bot] Aug 9, 2023
28c661a
sync with cpython d20d52bc
github-actions[bot] Aug 12, 2023
d5cd827
sync with cpython e8963a86
github-actions[bot] Aug 15, 2023
f6ed505
sync with cpython 931df0a4
github-actions[bot] Aug 17, 2023
073dd0f
sync with cpython 9342ac31
github-actions[bot] Aug 18, 2023
af81efd
sync with cpython af6e5fa7
github-actions[bot] Aug 18, 2023
d26aec4
sync with cpython 0e5eee01
github-actions[bot] Aug 20, 2023
5d61121
sync with cpython 7f5a741a
github-actions[bot] Aug 20, 2023
0373ec5
sync with cpython f2cc0052
github-actions[bot] Aug 21, 2023
9ae6ea1
sync with cpython 47f60c3f
github-actions[bot] Aug 22, 2023
46d3106
sync with cpython 200af429
github-actions[bot] Aug 23, 2023
2d65518
sync with cpython 3aa7df65
github-actions[bot] Aug 23, 2023
74c112a
sync with cpython b312d4fd
github-actions[bot] Aug 24, 2023
3af1ab2
sync with cpython 09487a20
github-actions[bot] Aug 25, 2023
ca9a550
sync with cpython ce37fbc7
github-actions[bot] Aug 26, 2023
4082bb0
sync with cpython 3e203037
github-actions[bot] Aug 27, 2023
bf2992d
sync with cpython 752d5254
github-actions[bot] Aug 27, 2023
2bd19df
sync with cpython f90099c3
github-actions[bot] Aug 28, 2023
ba26f84
sync with cpython 7c7b2bfb
github-actions[bot] Aug 29, 2023
566cfab
sync with cpython cdca4af6
github-actions[bot] Aug 29, 2023
64e48c5
sync with cpython 036dd695
github-actions[bot] Aug 30, 2023
e1a8830
sync with cpython 320d3982
github-actions[bot] Aug 31, 2023
1bbed0a
sync with cpython 8c3793a5
github-actions[bot] Sep 1, 2023
b0d6e17
sync with cpython 4dc07d2b
github-actions[bot] Sep 2, 2023
9709752
sync with cpython dcaacd90
github-actions[bot] Sep 3, 2023
5652ac6
sync with cpython 88ff02e3
github-actions[bot] Sep 5, 2023
fdfa1db
sync with cpython d7869ec2
github-actions[bot] Sep 6, 2023
c72b898
sync with cpython fff524ed
github-actions[bot] Sep 8, 2023
397e3dd
sync with cpython 21f4e6d6
github-actions[bot] Sep 13, 2023
2c33dc2
sync with cpython 5b38bdea
github-actions[bot] Sep 14, 2023
45de60a
sync with cpython 35c633d2
github-actions[bot] Sep 15, 2023
93caa48
sync with cpython 5c439fbd
github-actions[bot] Sep 18, 2023
b60673a
sync with cpython f6287bd4
github-actions[bot] Sep 23, 2023
661c7e0
sync with cpython 6f1d4552
github-actions[bot] Sep 25, 2023
0cb5094
sync with cpython 538f505a
github-actions[bot] Sep 26, 2023
657f170
sync with cpython 648198c3
github-actions[bot] Sep 27, 2023
847d146
sync with cpython 98a2d0e1
github-actions[bot] Sep 28, 2023
b3f24c4
sync with cpython 335e3d59
github-actions[bot] Sep 29, 2023
0b31d3c
sync with cpython 8882b30d
github-actions[bot] Sep 30, 2023
8493cb2
sync with cpython 41e8e155
github-actions[bot] Oct 3, 2023
341de10
sync with cpython 414f5620
github-actions[bot] Oct 4, 2023
294a33e
sync with cpython 36a7d6be
github-actions[bot] Oct 5, 2023
16b48f3
sync with cpython 6af359b0
github-actions[bot] Oct 6, 2023
97adce5
sync with cpython 2465fe00
github-actions[bot] Oct 7, 2023
e8655fe
sync with cpython ef4bd1b5
github-actions[bot] Oct 8, 2023
5f32a77
sync with cpython c8bffd16
github-actions[bot] Oct 10, 2023
dab5167
sync with cpython dcd47e50
github-actions[bot] Oct 11, 2023
b04bfac
sync with cpython dbbe0eeb
github-actions[bot] Oct 12, 2023
f667960
sync with cpython 27d5ea29
github-actions[bot] Oct 13, 2023
9fdf2ee
sync with cpython 0102faf0
github-actions[bot] Oct 14, 2023
78c8d76
sync with cpython 744f752f
github-actions[bot] Oct 15, 2023
03c95a4
sync with cpython 7de3c8b7
github-actions[bot] Oct 16, 2023
9218e40
sync with cpython 94525a7a
github-actions[bot] Oct 17, 2023
e0988b6
sync with cpython ae838afe
github-actions[bot] Oct 18, 2023
49189f9
sync with cpython d3121357
github-actions[bot] Oct 19, 2023
5035f9f
sync with cpython 41dfae8f
github-actions[bot] Oct 20, 2023
c7e710b
sync with cpython 727f8ee3
github-actions[bot] Oct 21, 2023
0b97df0
sync with cpython 9e73c71a
github-actions[bot] Oct 23, 2023
62e70bc
sync with cpython 38578dd6
github-actions[bot] Oct 24, 2023
61657d6
sync with cpython 6f130f23
github-actions[bot] Oct 25, 2023
cead0df
sync with cpython 7cce26bc
github-actions[bot] Oct 26, 2023
a10fbfd
sync with cpython 2398036e
github-actions[bot] Oct 28, 2023
2d9a8b9
sync with cpython f7ce4021
github-actions[bot] Oct 29, 2023
860a68a
sync with cpython e5b6744f
github-actions[bot] Oct 30, 2023
20afc76
sync with cpython 1675c254
github-actions[bot] Oct 31, 2023
e427595
sync with cpython 21c8fbf2
github-actions[bot] Nov 1, 2023
de1f11a
sync with cpython 99f0dd88
github-actions[bot] Nov 2, 2023
f4f1329
sync with cpython 1c84a480
github-actions[bot] Nov 3, 2023
84899bf
sync with cpython 02f8f781
github-actions[bot] Nov 4, 2023
59b8a6e
sync with cpython 9c583f36
github-actions[bot] Nov 5, 2023
376641d
sync with cpython e0c2bf46
github-actions[bot] Nov 5, 2023
b5341fc
sync with cpython 4f976c3b
github-actions[bot] Nov 9, 2023
ca8986d
sync with cpython 5a8e6f8b
github-actions[bot] Nov 10, 2023
bc06528
sync with cpython 2c6000cb
github-actions[bot] Nov 11, 2023
0345149
sync with cpython 3b7e308a
github-actions[bot] Nov 13, 2023
134e0ba
sync with cpython 427cf61b
github-actions[bot] Nov 16, 2023
dfffaa2
sync with cpython 94bac1c4
github-actions[bot] Nov 17, 2023
39b0884
sync with cpython 0ea64544
github-actions[bot] Nov 18, 2023
35991be
sync with cpython d4fd165a
github-actions[bot] Nov 20, 2023
878d300
sync with cpython 298e57ab
github-actions[bot] Nov 22, 2023
8100880
sync with cpython 86db104e
github-actions[bot] Nov 24, 2023
6d32237
sync with cpython 103728dc
github-actions[bot] Nov 25, 2023
508a627
sync with cpython b478c5e5
github-actions[bot] Nov 26, 2023
9df99d0
sync with cpython d7a78833
github-actions[bot] Nov 27, 2023
4f0775c
sync with cpython 82ae5a60
github-actions[bot] Nov 28, 2023
4d32d95
sync with cpython 749c8fda
github-actions[bot] Nov 30, 2023
37ffdd5
sync with cpython a99305e7
github-actions[bot] Dec 1, 2023
b3234f3
sync with cpython 2a378ca2
github-actions[bot] Dec 3, 2023
d50d608
sync with cpython da73a5cc
github-actions[bot] Dec 4, 2023
c31637a
sync with cpython 85bbfa8a
github-actions[bot] Dec 5, 2023
2af9c99
sync with cpython 5720f7fc
github-actions[bot] Dec 6, 2023
4f281bb
sync with cpython ca11aec9
github-actions[bot] Dec 7, 2023
51c65dd
sync with cpython 8b58d12f
github-actions[bot] Dec 8, 2023
2dade90
sync with cpython 259a4af3
github-actions[bot] Dec 9, 2023
deac439
sync with cpython b23034de
github-actions[bot] Dec 10, 2023
4cab441
sync with cpython 68657e2b
github-actions[bot] Dec 10, 2023
221a2ee
sync with cpython 78a5010a
github-actions[bot] Dec 11, 2023
69cf739
sync with cpython e3281152
github-actions[bot] Dec 13, 2023
ee54c9a
sync with cpython c34c9e3b
github-actions[bot] Dec 14, 2023
5f2fbe2
sync with cpython 614691a7
github-actions[bot] Dec 15, 2023
021f5ca
sync with cpython d77d62ab
github-actions[bot] Dec 16, 2023
8076841
sync with cpython f7cacc43
github-actions[bot] Dec 17, 2023
346a22d
sync with cpython 38a41820
github-actions[bot] Dec 18, 2023
1aeb830
sync with cpython 816b6351
github-actions[bot] Dec 19, 2023
6368a3e
sync with cpython 376b46d9
github-actions[bot] Dec 20, 2023
eae516c
sync with cpython 19271185
github-actions[bot] Dec 21, 2023
892b9fc
sync with cpython 8836c2d9
github-actions[bot] Dec 21, 2023
eb33907
sync with cpython 08d3b5dd
github-actions[bot] Dec 22, 2023
f38f43e
sync with cpython 9d72a5ca
github-actions[bot] Dec 23, 2023
868ca01
sync with cpython 8a955003
github-actions[bot] Dec 26, 2023
89fc2cc
sync with cpython 356f5967
github-actions[bot] Dec 27, 2023
1ac0212
sync with cpython c1b396cd
github-actions[bot] Dec 28, 2023
b53bcda
sync with cpython 5a122ad7
github-actions[bot] Dec 29, 2023
fb432ef
sync with cpython c0de843c
github-actions[bot] Dec 30, 2023
1217c10
sync with cpython 9a2dadf6
github-actions[bot] Dec 31, 2023
d8e0eb2
sync with cpython f3d3663a
github-actions[bot] Jan 1, 2024
ab3e051
sync with cpython c7a1431c
github-actions[bot] Jan 2, 2024
287f273
sync with cpython 329f8d1f
github-actions[bot] Jan 3, 2024
496d052
sync with cpython d3f2051e
github-actions[bot] Jan 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions bugs.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-27 00:17+0000\n"
"POT-Creation-Date: 2023-11-05 10:17+0000\n"
"PO-Revision-Date: 2022-08-31 12:34+0800\n"
"Last-Translator: Steven Hsu <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -116,9 +116,10 @@ msgid ""
msgstr "給有意成為 Python 說明文件貢獻者的綜合指南。"

#: ../../bugs.rst:41
#, fuzzy
msgid ""
"`Documentation Translations <https://devguide.python.org/documenting/"
"#translating>`_"
"`Documentation Translations <https://devguide.python.org/documentation/"
"translating/>`_"
msgstr "`說明文件翻譯 <https://devguide.python.org/documenting/#translating>`_"

#: ../../bugs.rst:42
Expand Down
39 changes: 22 additions & 17 deletions c-api/allocation.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-06 00:17+0000\n"
"POT-Creation-Date: 2023-08-09 01:33+0000\n"
"PO-Revision-Date: 2022-10-16 15:35+0800\n"
"Last-Translator: Matt Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -47,10 +47,12 @@ msgstr ""
"度資訊。"

#: ../../c-api/allocation.rst:32
#, fuzzy
msgid ""
"Allocate a new Python object using the C structure type *TYPE* and the "
"Python type object *type*. Fields not defined by the Python object header "
"are not initialized; the object's reference count will be one. The size of "
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
"Python object header are not initialized. The caller will own the only "
"reference to the object (i.e. its reference count will be one). The size of "
"the memory allocation is determined from the :c:member:`~PyTypeObject."
"tp_basicsize` field of the type object."
msgstr ""
Expand All @@ -59,16 +61,18 @@ msgstr ""
"一。記憶體分配大小由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位"
"來指定。"

#: ../../c-api/allocation.rst:41
#: ../../c-api/allocation.rst:43
#, fuzzy
msgid ""
"Allocate a new Python object using the C structure type *TYPE* and the "
"Python type object *type*. Fields not defined by the Python object header "
"are not initialized. The allocated memory allows for the *TYPE* structure "
"plus *size* fields of the size given by the :c:member:`~PyTypeObject."
"tp_itemsize` field of *type*. This is useful for implementing objects like "
"tuples, which are able to determine their size at construction time. "
"Embedding the array of fields into the same allocation decreases the number "
"of allocations, improving the memory management efficiency."
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
"Python object header are not initialized. The allocated memory allows for "
"the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given "
"by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is "
"useful for implementing objects like tuples, which are able to determine "
"their size at construction time. Embedding the array of fields into the "
"same allocation decreases the number of allocations, improving the memory "
"management efficiency."
msgstr ""
"使用 C 的結構型別 *TYPE* 和 Python 的型別物件 *type* 分配一個新的 Python 物"
"件。未在該 Python 物件標頭中定義的欄位不會被初始化。記憶體空間預留了 *TYPE* "
Expand All @@ -77,10 +81,11 @@ msgstr ""
"很實用的。將欄位的陣列嵌入到相同的記憶體分配中可以減少記憶體分配的次數,這提"
"高了記憶體管理的效率。"

#: ../../c-api/allocation.rst:53
#: ../../c-api/allocation.rst:57
#, fuzzy
msgid ""
"Releases memory allocated to an object using :c:func:`PyObject_New` or :c:"
"func:`PyObject_NewVar`. This is normally called from the :c:member:"
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
"`~PyTypeObject.tp_dealloc` handler specified in the object's type. The "
"fields of the object should not be accessed after this call as the memory is "
"no longer a valid Python object."
Expand All @@ -90,7 +95,7 @@ msgstr ""
"中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的記憶體已"
"不再是一個有效的 Python 物件。"

#: ../../c-api/allocation.rst:62
#: ../../c-api/allocation.rst:66
msgid ""
"Object which is visible in Python as ``None``. This should only be accessed "
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
Expand All @@ -99,10 +104,10 @@ msgstr ""
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
"取,該巨集的拿到指向該物件的指標。"

#: ../../c-api/allocation.rst:69
#: ../../c-api/allocation.rst:73
msgid ":c:func:`PyModule_Create`"
msgstr ":c:func:`PyModule_Create`"

#: ../../c-api/allocation.rst:70
#: ../../c-api/allocation.rst:74
msgid "To allocate and create extension modules."
msgstr "分配記憶體和建立擴充模組。"
5 changes: 3 additions & 2 deletions c-api/apiabiversion.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: 2022-12-18 00:16+0000\n"
"POT-Creation-Date: 2023-07-29 01:26+0000\n"
"PO-Revision-Date: 2022-01-24 22:34+0800\n"
"Last-Translator: Matt Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -177,7 +177,8 @@ msgid "Use this for numeric comparisons, e.g. ``#if PY_VERSION_HEX >= ...``."
msgstr "使用它進行數值比較,例如 ``#if PY_VERSION_HEX >= ...``。"

#: ../../c-api/apiabiversion.rst:63
msgid "This version is also available via the symbol :data:`Py_Version`."
#, fuzzy
msgid "This version is also available via the symbol :c:var:`Py_Version`."
msgstr "該版本也可透過符號 :data:`Py_Version` 獲得。"

#: ../../c-api/apiabiversion.rst:67
Expand Down
Loading