@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.12\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
- "POT-Creation-Date : 2023-07-29 00:03+0000\n "
13
+ "POT-Creation-Date : 2023-08-09 00:03+0000\n "
14
14
"PO-Revision-Date : 2022-10-16 15:35+0800\n "
15
15
"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -50,16 +50,17 @@ msgstr ""
50
50
msgid ""
51
51
"Allocate a new Python object using the C structure type *TYPE* and the "
52
52
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
53
- "Python object header are not initialized; the object's reference count will "
54
- "be one. The size of the memory allocation is determined from the :c:member:"
55
- "`~PyTypeObject.tp_basicsize` field of the type object."
53
+ "Python object header are not initialized. The caller will own the only "
54
+ "reference to the object (i.e. its reference count will be one). The size of "
55
+ "the memory allocation is determined from the :c:member:`~PyTypeObject."
56
+ "tp_basicsize` field of the type object."
56
57
msgstr ""
57
58
"使用 C 結構型別 *TYPE* 和 Python 型別物件 *typeobj* (``PyTypeObject*``) 分配"
58
59
"一個新的 Python 物件。未在該 Python 物件標頭 (header) 中定義的欄位不會被初始"
59
- "化;物件的參照計數將為一。記憶體分配大小由 type 物件的 :c:member: "
60
- "`~PyTypeObject.tp_basicsize` 欄位來指定。"
60
+ "化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小 "
61
+ "由 type 物件的 :c:member: `~PyTypeObject.tp_basicsize` 欄位來指定。"
61
62
62
- #: ../../c-api/allocation.rst:42
63
+ #: ../../c-api/allocation.rst:43
63
64
msgid ""
64
65
"Allocate a new Python object using the C structure type *TYPE* and the "
65
66
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -78,7 +79,7 @@ msgstr ""
78
79
"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
79
80
"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"
80
81
81
- #: ../../c-api/allocation.rst:56
82
+ #: ../../c-api/allocation.rst:57
82
83
msgid ""
83
84
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
84
85
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
@@ -91,7 +92,7 @@ msgstr ""
91
92
"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
92
93
"記憶體已不再是一個有效的 Python 物件。"
93
94
94
- #: ../../c-api/allocation.rst:65
95
+ #: ../../c-api/allocation.rst:66
95
96
msgid ""
96
97
"Object which is visible in Python as ``None``. This should only be accessed "
97
98
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -100,10 +101,10 @@ msgstr ""
100
101
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
101
102
"取,該巨集的拿到指向該物件的指標。"
102
103
103
- #: ../../c-api/allocation.rst:72
104
+ #: ../../c-api/allocation.rst:73
104
105
msgid ":c:func:`PyModule_Create`"
105
106
msgstr ":c:func:`PyModule_Create`"
106
107
107
- #: ../../c-api/allocation.rst:73
108
+ #: ../../c-api/allocation.rst:74
108
109
msgid "To allocate and create extension modules."
109
110
msgstr "分配記憶體和建立擴充模組。"
0 commit comments