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 all commits
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

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions c-api/allocation.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-06 00:13+0000\n"
"POT-Creation-Date: 2025-03-18 00:14+0000\n"
"PO-Revision-Date: 2022-10-16 15:35+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -56,7 +56,14 @@ msgstr ""
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"

#: ../../c-api/allocation.rst:41
#: ../../c-api/allocation.rst:38
msgid ""
"Note that this function is unsuitable if *typeobj* has :c:macro:"
"`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_New` "
"instead."
msgstr ""

#: ../../c-api/allocation.rst:45
msgid ""
"Allocate a new Python object using the C structure type *TYPE* and the "
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
Expand All @@ -75,7 +82,14 @@ msgstr ""
"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"

#: ../../c-api/allocation.rst:55
#: ../../c-api/allocation.rst:56
msgid ""
"Note that this function is unsuitable if *typeobj* has :c:macro:"
"`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_NewVar` "
"instead."
msgstr ""

#: ../../c-api/allocation.rst:63
msgid ""
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
Expand All @@ -88,7 +102,7 @@ msgstr ""
"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
"記憶體已不再是一個有效的 Python 物件。"

#: ../../c-api/allocation.rst:64
#: ../../c-api/allocation.rst:72
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 @@ -97,10 +111,10 @@ msgstr ""
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
"取,該巨集的拿到指向該物件的指標。"

#: ../../c-api/allocation.rst:71
#: ../../c-api/allocation.rst:79
msgid ":c:func:`PyModule_Create`"
msgstr ":c:func:`PyModule_Create`"

#: ../../c-api/allocation.rst:72
#: ../../c-api/allocation.rst:80
msgid "To allocate and create extension modules."
msgstr "分配記憶體和建立擴充模組。"
Loading