9
9
msgstr ""
10
10
"Project-Id-Version : Python 3.13\n "
11
11
"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 "
13
13
"PO-Revision-Date : 2022-10-16 15:35+0800\n "
14
14
"
Last-Translator :
Matt Wang <[email protected] >\n "
15
15
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -56,7 +56,14 @@ msgstr ""
56
56
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
57
57
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
58
58
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
60
67
msgid ""
61
68
"Allocate a new Python object using the C structure type *TYPE* and the "
62
69
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -75,7 +82,14 @@ msgstr ""
75
82
"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
76
83
"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"
77
84
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
79
93
msgid ""
80
94
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
81
95
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
@@ -88,7 +102,7 @@ msgstr ""
88
102
"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
89
103
"記憶體已不再是一個有效的 Python 物件。"
90
104
91
- #: ../../c-api/allocation.rst:64
105
+ #: ../../c-api/allocation.rst:72
92
106
msgid ""
93
107
"Object which is visible in Python as ``None``. This should only be accessed "
94
108
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -97,10 +111,10 @@ msgstr ""
97
111
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
98
112
"取,該巨集的拿到指向該物件的指標。"
99
113
100
- #: ../../c-api/allocation.rst:71
114
+ #: ../../c-api/allocation.rst:79
101
115
msgid ":c:func:`PyModule_Create`"
102
116
msgstr ":c:func:`PyModule_Create`"
103
117
104
- #: ../../c-api/allocation.rst:72
118
+ #: ../../c-api/allocation.rst:80
105
119
msgid "To allocate and create extension modules."
106
120
msgstr "分配記憶體和建立擴充模組。"
0 commit comments