1- # SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2022, Python Software Foundation
1+ # Copyright (C) 2001-2024, Python Software Foundation
32# This file is distributed under the same license as the Python package.
43#
54# Translators:
@@ -10,7 +9,7 @@ msgid ""
109msgstr ""
1110"Project-Id-Version : Python 3.13\n "
1211"Report-Msgid-Bugs-To : \n "
13- "POT-Creation-Date : 2023-08-09 00:03 +0000\n "
12+ "POT-Creation-Date : 2024-11-06 00:13 +0000\n "
1413"PO-Revision-Date : 2022-10-16 15:35+0800\n "
1514"
Last-Translator :
Matt Wang <[email protected] >\n "
1615"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -29,24 +28,21 @@ msgstr "在 heap 上分配物件"
2928#: ../../c-api/allocation.rst:17
3029msgid ""
3130"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."
31+ "reference. Returns the initialized object. Other fields of the object are "
32+ "not affected."
3633msgstr ""
37- "用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。如果 "
38- "*type* 表示了該物件參與迴圈垃圾檢查器,則將其新增到檢查器的觀察物件集合中。物"
39- "件的其他欄位不受影響。"
34+ "用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。物件的其"
35+ "他欄位不受影響。"
4036
41- #: ../../c-api/allocation.rst:26
37+ #: ../../c-api/allocation.rst:24
4238msgid ""
4339"This does everything :c:func:`PyObject_Init` does, and also initializes the "
4440"length information for a variable-size object."
4541msgstr ""
4642"它會做到 :c:func:`PyObject_Init` 的所有功能,並且會初始化一個大小可變物件的長"
4743"度資訊。"
4844
49- #: ../../c-api/allocation.rst:32
45+ #: ../../c-api/allocation.rst:30
5046msgid ""
5147"Allocate a new Python object using the C structure type *TYPE* and the "
5248"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -60,7 +56,7 @@ msgstr ""
6056"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
6157"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
6258
63- #: ../../c-api/allocation.rst:43
59+ #: ../../c-api/allocation.rst:41
6460msgid ""
6561"Allocate a new Python object using the C structure type *TYPE* and the "
6662"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -79,7 +75,7 @@ msgstr ""
7975"於實現如 tuple 這種能夠在建立期間決定自己大小的物件是很實用的。將欄位的陣列嵌"
8076"入到相同的記憶體分配中可以減少記憶體分配的次數,這提高了記憶體管理的效率。"
8177
82- #: ../../c-api/allocation.rst:57
78+ #: ../../c-api/allocation.rst:55
8379msgid ""
8480"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
8581"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
@@ -92,7 +88,7 @@ msgstr ""
9288"handler 中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的"
9389"記憶體已不再是一個有效的 Python 物件。"
9490
95- #: ../../c-api/allocation.rst:66
91+ #: ../../c-api/allocation.rst:64
9692msgid ""
9793"Object which is visible in Python as ``None``. This should only be accessed "
9894"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -101,10 +97,10 @@ msgstr ""
10197"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
10298"取,該巨集的拿到指向該物件的指標。"
10399
104- #: ../../c-api/allocation.rst:73
100+ #: ../../c-api/allocation.rst:71
105101msgid ":c:func:`PyModule_Create`"
106102msgstr ":c:func:`PyModule_Create`"
107103
108- #: ../../c-api/allocation.rst:74
104+ #: ../../c-api/allocation.rst:72
109105msgid "To allocate and create extension modules."
110106msgstr "分配記憶體和建立擴充模組。"
0 commit comments