44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # 强 陈 <lxchenqiang@163.com>, 2021
8- # Sonny <758896823@qq.com>, 2021
9- # Naisen Xu <723648649@qq.com>, 2021
10- # Freesand Leo <yuqinju@163.com>, 2024
7+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2024
118#
129#, fuzzy
1310msgid ""
1411msgstr ""
1512"Project-Id-Version : Python 3.12\n "
1613"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2024-04-14 22:56 +0000\n "
18- "PO-Revision-Date : 2021-06-28 00:47 +0000\n "
19- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2024\n "
14+ "POT-Creation-Date : 2024-11-12 09:11 +0000\n "
15+ "PO-Revision-Date : 2024-05-11 00:32 +0000\n "
16+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail .com>, 2024\n "
2017"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2118"MIME-Version : 1.0\n "
2219"Content-Type : text/plain; charset=UTF-8\n "
@@ -31,21 +28,17 @@ msgstr "在堆上分配对象"
3128#: ../../c-api/allocation.rst:17
3229msgid ""
3330"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- " 对象的其他字段不受影响。"
31+ "reference. Returns the initialized object. Other fields of the object are "
32+ "not affected."
33+ msgstr "为新分配的对象 *op* 初始化它的类型和初始引用。 返回初始化后的对象。 对象的其他字段不会被影响。"
4134
42- #: ../../c-api/allocation.rst:26
35+ #: ../../c-api/allocation.rst:24
4336msgid ""
4437"This does everything :c:func:`PyObject_Init` does, and also initializes the "
4538"length information for a variable-size object."
4639msgstr "它的功能和 :c:func:`PyObject_Init` 一样,并且会初始化变量大小对象的长度信息。"
4740
48- #: ../../c-api/allocation.rst:32
41+ #: ../../c-api/allocation.rst:30
4942msgid ""
5043"Allocate a new Python object using the C structure type *TYPE* and the "
5144"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -58,7 +51,7 @@ msgstr ""
5851"对象。 f未在该 Python 对象标头中定义的字段不会被初始化。 调用方将拥有对该对象的唯一引用(即引用计数将为 1)。 内存分配的大小由类型对象的 "
5952":c:member:`~PyTypeObject.tp_basicsize` 字段决定。"
6053
61- #: ../../c-api/allocation.rst:43
54+ #: ../../c-api/allocation.rst:41
6255msgid ""
6356"Allocate a new Python object using the C structure type *TYPE* and the "
6457"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -75,7 +68,7 @@ msgstr ""
7568":c:member:`~PyTypeObject.tp_itemsize` 字段所给出的 *size* (``Py_ssize_t``) 个字段。 "
7669"这对于实现像元组这样能够在构造时确定其大小的对象来说很有用。 将字段数组嵌入到相同的内在分配中可减少内存分配的次数,这提高了内存管理效率。"
7770
78- #: ../../c-api/allocation.rst:57
71+ #: ../../c-api/allocation.rst:55
7972msgid ""
8073"Releases memory allocated to an object using :c:macro:`PyObject_New` or "
8174":c:macro:`PyObject_NewVar`. This is normally called from the "
@@ -87,18 +80,18 @@ msgstr ""
8780"这通常由在对象的类型中指定的 :c:member:`~PyTypeObject.tp_dealloc` 处理器来调用。 "
8881"在此调用之后该对象中的字段不应再被访问因为原来的内存已不再是一个有效的 Python 对象。"
8982
90- #: ../../c-api/allocation.rst:66
83+ #: ../../c-api/allocation.rst:64
9184msgid ""
9285"Object which is visible in Python as ``None``. This should only be accessed"
9386" using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
9487"object."
9588msgstr ""
9689"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
9790
98- #: ../../c-api/allocation.rst:73
91+ #: ../../c-api/allocation.rst:71
9992msgid ":c:func:`PyModule_Create`"
10093msgstr ":c:func:`PyModule_Create`"
10194
102- #: ../../c-api/allocation.rst:74
95+ #: ../../c-api/allocation.rst:72
10396msgid "To allocate and create extension modules."
10497msgstr "分配内存和创建扩展模块"
0 commit comments