@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.12\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2023-07-28 14:13+0000\n "
17+ "POT-Creation-Date : 2023-08-11 14:13+0000\n "
1818"PO-Revision-Date : 2021-06-28 00:47+0000\n "
1919"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
2020"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -49,15 +49,13 @@ msgstr "它的功能和 :c:func:`PyObject_Init` 一样,并且会初始化变
4949msgid ""
5050"Allocate a new Python object using the C structure type *TYPE* and the "
5151"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
52- "Python object header are not initialized; the object's reference count will "
53- "be one. The size of the memory allocation is determined from the "
52+ "Python object header are not initialized. The caller will own the only "
53+ "reference to the object (i.e. its reference count will be one). The size of "
54+ "the memory allocation is determined from the "
5455":c:member:`~PyTypeObject.tp_basicsize` field of the type object."
5556msgstr ""
56- "使用 C 结构类型 *TYPE* 和 Python 类型对象 *typeobj* (``PyTypeObject*``) 分配一个新的 Python "
57- "对象。 未在该 Python 对象标头中定义的字段不会被初始化;对象的引用计数将为一。 内在分配大小由类型对象的 "
58- ":c:member:`~PyTypeObject.tp_basicsize` 字段来确定。"
5957
60- #: ../../c-api/allocation.rst:42
58+ #: ../../c-api/allocation.rst:43
6159msgid ""
6260"Allocate a new Python object using the C structure type *TYPE* and the "
6361"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -74,7 +72,7 @@ msgstr ""
7472":c:member:`~PyTypeObject.tp_itemsize` 字段所给出的 *size* (``Py_ssize_t``) 个字段。 "
7573"这对于实现像元组这样能够在构造时确定其大小的对象来说很有用。 将字段数组嵌入到相同的内在分配中可减少内存分配的次数,这提高了内存管理效率。"
7674
77- #: ../../c-api/allocation.rst:56
75+ #: ../../c-api/allocation.rst:57
7876msgid ""
7977"Releases memory allocated to an object using :c:macro:`PyObject_New` or "
8078":c:macro:`PyObject_NewVar`. This is normally called from the "
@@ -86,18 +84,18 @@ msgstr ""
8684"这通常由在对象的类型中指定的 :c:member:`~PyTypeObject.tp_dealloc` 处理句柄来调用。 "
8785"在此调用之后该对象中的字段不应再被访问因为原来的内存已不再是一个有效的 Python 对象。"
8886
89- #: ../../c-api/allocation.rst:65
87+ #: ../../c-api/allocation.rst:66
9088msgid ""
9189"Object which is visible in Python as ``None``. This should only be accessed"
9290" using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
9391"object."
9492msgstr ""
9593"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
9694
97- #: ../../c-api/allocation.rst:72
95+ #: ../../c-api/allocation.rst:73
9896msgid ":c:func:`PyModule_Create`"
9997msgstr ":c:func:`PyModule_Create`"
10098
101- #: ../../c-api/allocation.rst:73
99+ #: ../../c-api/allocation.rst:74
102100msgid "To allocate and create extension modules."
103101msgstr "分配内存和创建扩展模块"
0 commit comments