@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.13\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
- "POT-Creation-Date : 2023-08-09 00:03 +0000\n "
13
+ "POT-Creation-Date : 2024-11-06 00:13 +0000\n "
14
14
"PO-Revision-Date : 2022-10-16 15:35+0800\n "
15
15
"
Last-Translator :
Matt Wang <[email protected] >\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -27,26 +27,25 @@ msgid "Allocating Objects on the Heap"
27
27
msgstr "在 heap 上分配物件"
28
28
29
29
#: ../../c-api/allocation.rst:17
30
+ #, fuzzy
30
31
msgid ""
31
32
"Initialize a newly allocated object *op* with its type and initial "
32
- "reference. Returns the initialized object. If *type* indicates that the "
33
- "object participates in the cyclic garbage detector, it is added to the "
34
- "detector's set of observed objects. Other fields of the object are not "
35
- "affected."
33
+ "reference. Returns the initialized object. Other fields of the object are "
34
+ "not affected."
36
35
msgstr ""
37
36
"用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。如果 "
38
37
"*type* 表示了該物件參與迴圈垃圾檢查器,則將其新增到檢查器的觀察物件集合中。物"
39
38
"件的其他欄位不受影響。"
40
39
41
- #: ../../c-api/allocation.rst:26
40
+ #: ../../c-api/allocation.rst:24
42
41
msgid ""
43
42
"This does everything :c:func:`PyObject_Init` does, and also initializes the "
44
43
"length information for a variable-size object."
45
44
msgstr ""
46
45
"它會做到 :c:func:`PyObject_Init` 的所有功能,並且會初始化一個大小可變物件的長"
47
46
"度資訊。"
48
47
49
- #: ../../c-api/allocation.rst:32
48
+ #: ../../c-api/allocation.rst:30
50
49
msgid ""
51
50
"Allocate a new Python object using the C structure type *TYPE* and the "
52
51
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -60,7 +59,7 @@ msgstr ""
60
59
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
61
60
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
62
61
63
- #: ../../c-api/allocation.rst:43
62
+ #: ../../c-api/allocation.rst:41
64
63
msgid ""
65
64
"Allocate a new Python object using the C structure type *TYPE* and the "
66
65
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -79,7 +78,7 @@ msgstr ""
79
78
"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
80
79
"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"
81
80
82
- #: ../../c-api/allocation.rst:57
81
+ #: ../../c-api/allocation.rst:55
83
82
msgid ""
84
83
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
85
84
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
@@ -92,7 +91,7 @@ msgstr ""
92
91
"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
93
92
"記憶體已不再是一個有效的 Python 物件。"
94
93
95
- #: ../../c-api/allocation.rst:66
94
+ #: ../../c-api/allocation.rst:64
96
95
msgid ""
97
96
"Object which is visible in Python as ``None``. This should only be accessed "
98
97
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -101,10 +100,10 @@ msgstr ""
101
100
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
102
101
"取,該巨集的拿到指向該物件的指標。"
103
102
104
- #: ../../c-api/allocation.rst:73
103
+ #: ../../c-api/allocation.rst:71
105
104
msgid ":c:func:`PyModule_Create`"
106
105
msgstr ":c:func:`PyModule_Create`"
107
106
108
- #: ../../c-api/allocation.rst:74
107
+ #: ../../c-api/allocation.rst:72
109
108
msgid "To allocate and create extension modules."
110
109
msgstr "分配記憶體和建立擴充模組。"
0 commit comments