@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.13\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2024-10-04 14:17 +0000\n "
17+ "POT-Creation-Date : 2024-11-08 14:16 +0000\n "
1818"PO-Revision-Date : 2021-06-28 00:47+0000\n "
1919"Last-Translator : Freesand Leo <yuqinju@163.com>, 2024\n "
2020"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -31,21 +31,17 @@ msgstr "在堆上分配对象"
3131#: ../../c-api/allocation.rst:17
3232msgid ""
3333"Initialize a newly allocated object *op* with its type and initial "
34- "reference. Returns the initialized object. If *type* indicates that the "
35- "object participates in the cyclic garbage detector, it is added to the "
36- "detector's set of observed objects. Other fields of the object are not "
37- "affected."
38- msgstr ""
39- "用它的类型和初始引用来初始化新分配对象 *op*。返回已初始化的对象。如果 *type* 明该对象参与循环垃圾检测器,则将其添加到检测器的观察对象集中。"
40- " 对象的其他字段不受影响。"
34+ "reference. Returns the initialized object. Other fields of the object are "
35+ "not affected."
36+ msgstr "为新分配的对象 *op* 初始化它的类型和初始引用。 返回初始化后的对象。 对象的其他字段不会被影响。"
4137
42- #: ../../c-api/allocation.rst:26
38+ #: ../../c-api/allocation.rst:24
4339msgid ""
4440"This does everything :c:func:`PyObject_Init` does, and also initializes the "
4541"length information for a variable-size object."
4642msgstr "它的功能和 :c:func:`PyObject_Init` 一样,并且会初始化变量大小对象的长度信息。"
4743
48- #: ../../c-api/allocation.rst:32
44+ #: ../../c-api/allocation.rst:30
4945msgid ""
5046"Allocate a new Python object using the C structure type *TYPE* and the "
5147"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -58,7 +54,7 @@ msgstr ""
5854"对象。 f未在该 Python 对象标头中定义的字段不会被初始化。 调用方将拥有对该对象的唯一引用(即引用计数将为 1)。 内存分配的大小由类型对象的 "
5955":c:member:`~PyTypeObject.tp_basicsize` 字段决定。"
6056
61- #: ../../c-api/allocation.rst:43
57+ #: ../../c-api/allocation.rst:41
6258msgid ""
6359"Allocate a new Python object using the C structure type *TYPE* and the "
6460"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -75,7 +71,7 @@ msgstr ""
7571":c:member:`~PyTypeObject.tp_itemsize` 字段所给出的 *size* (``Py_ssize_t``) 个字段。 "
7672"这对于实现像元组这样能够在构造时确定其大小的对象来说很有用。 将字段数组嵌入到相同的内在分配中可减少内存分配的次数,这提高了内存管理效率。"
7773
78- #: ../../c-api/allocation.rst:57
74+ #: ../../c-api/allocation.rst:55
7975msgid ""
8076"Releases memory allocated to an object using :c:macro:`PyObject_New` or "
8177":c:macro:`PyObject_NewVar`. This is normally called from the "
@@ -87,18 +83,18 @@ msgstr ""
8783"这通常由在对象的类型中指定的 :c:member:`~PyTypeObject.tp_dealloc` 处理器来调用。 "
8884"在此调用之后该对象中的字段不应再被访问因为原来的内存已不再是一个有效的 Python 对象。"
8985
90- #: ../../c-api/allocation.rst:66
86+ #: ../../c-api/allocation.rst:64
9187msgid ""
9288"Object which is visible in Python as ``None``. This should only be accessed"
9389" using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
9490"object."
9591msgstr ""
9692"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
9793
98- #: ../../c-api/allocation.rst:73
94+ #: ../../c-api/allocation.rst:71
9995msgid ":c:func:`PyModule_Create`"
10096msgstr ":c:func:`PyModule_Create`"
10197
102- #: ../../c-api/allocation.rst:74
98+ #: ../../c-api/allocation.rst:72
10399msgid "To allocate and create extension modules."
104100msgstr "分配内存和创建扩展模块"
0 commit comments