Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ce1539

Browse files
Sync with CPython 3.13 (#1019)
1 parent2df827a commit6ce1539

File tree

219 files changed

+38954
-35583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+38954
-35583
lines changed

‎c-api/allocation.po

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.13\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2024-11-06 00:13+0000\n"
12+
"POT-Creation-Date:2025-03-18 00:14+0000\n"
1313
"PO-Revision-Date:2022-10-16 15:35+0800\n"
1414
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -56,7 +56,14 @@ msgstr ""
5656
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
5757
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
5858

59-
#:../../c-api/allocation.rst:41
59+
#:../../c-api/allocation.rst:38
60+
msgid""
61+
"Note that this function is unsuitable if *typeobj* has :c:macro:"
62+
"`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_New` "
63+
"instead."
64+
msgstr""
65+
66+
#:../../c-api/allocation.rst:45
6067
msgid""
6168
"Allocate a new Python object using the C structure type *TYPE* and the "
6269
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -75,7 +82,14 @@ msgstr ""
7582
"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
7683
"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"
7784

78-
#:../../c-api/allocation.rst:55
85+
#:../../c-api/allocation.rst:56
86+
msgid""
87+
"Note that this function is unsuitable if *typeobj* has :c:macro:"
88+
"`Py_TPFLAGS_HAVE_GC` set. For such objects, use :c:func:`PyObject_GC_NewVar` "
89+
"instead."
90+
msgstr""
91+
92+
#:../../c-api/allocation.rst:63
7993
msgid""
8094
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
8195
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
@@ -88,7 +102,7 @@ msgstr ""
88102
"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
89103
"記憶體已不再是一個有效的 Python 物件。"
90104

91-
#:../../c-api/allocation.rst:64
105+
#:../../c-api/allocation.rst:72
92106
msgid""
93107
"Object which is visible in Python as ``None``. This should only be accessed "
94108
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -97,10 +111,10 @@ msgstr ""
97111
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
98112
"取,該巨集的拿到指向該物件的指標。"
99113

100-
#:../../c-api/allocation.rst:71
114+
#:../../c-api/allocation.rst:79
101115
msgid":c:func:`PyModule_Create`"
102116
msgstr":c:func:`PyModule_Create`"
103117

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp