Skip to content

Commit e98eab4

Browse files
sync with cpython 9dd3addc
1 parent d6f6982 commit e98eab4

File tree

2 files changed

+106
-95
lines changed

2 files changed

+106
-95
lines changed

c-api/allocation.po

+11-12
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.13\n"
1212
"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"
1414
"PO-Revision-Date: 2022-10-16 15:35+0800\n"
1515
"Last-Translator: Matt Wang <[email protected]>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -27,26 +27,25 @@ msgid "Allocating Objects on the Heap"
2727
msgstr "在 heap 上分配物件"
2828

2929
#: ../../c-api/allocation.rst:17
30+
#, fuzzy
3031
msgid ""
3132
"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."
3635
msgstr ""
3736
"用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。如果 "
3837
"*type* 表示了該物件參與迴圈垃圾檢查器,則將其新增到檢查器的觀察物件集合中。物"
3938
"件的其他欄位不受影響。"
4039

41-
#: ../../c-api/allocation.rst:26
40+
#: ../../c-api/allocation.rst:24
4241
msgid ""
4342
"This does everything :c:func:`PyObject_Init` does, and also initializes the "
4443
"length information for a variable-size object."
4544
msgstr ""
4645
"它會做到 :c:func:`PyObject_Init` 的所有功能,並且會初始化一個大小可變物件的長"
4746
"度資訊。"
4847

49-
#: ../../c-api/allocation.rst:32
48+
#: ../../c-api/allocation.rst:30
5049
msgid ""
5150
"Allocate a new Python object using the C structure type *TYPE* and the "
5251
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -60,7 +59,7 @@ msgstr ""
6059
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
6160
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
6261

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

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

95-
#: ../../c-api/allocation.rst:66
94+
#: ../../c-api/allocation.rst:64
9695
msgid ""
9796
"Object which is visible in Python as ``None``. This should only be accessed "
9897
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -101,10 +100,10 @@ msgstr ""
101100
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
102101
"取,該巨集的拿到指向該物件的指標。"
103102

104-
#: ../../c-api/allocation.rst:73
103+
#: ../../c-api/allocation.rst:71
105104
msgid ":c:func:`PyModule_Create`"
106105
msgstr ":c:func:`PyModule_Create`"
107106

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

0 commit comments

Comments
 (0)