Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9b0582

Browse files
[po] auto sync
1 parent af6dd70 commit f9b0582

16 files changed

Lines changed: 2317 additions & 2378 deletions

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.60%", "updated_at": "2023-08-11T08:56:47Z"}
1+
{"translation": "89.49%", "updated_at": "2023-08-11T14:57:44Z"}

c-api/allocation.po

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
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` 一样,并且会初始化变
4949
msgid ""
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."
5556
msgstr ""
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
6159
msgid ""
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
7876
msgid ""
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
9088
msgid ""
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."
9492
msgstr ""
9593
"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
9694

97-
#: ../../c-api/allocation.rst:72
95+
#: ../../c-api/allocation.rst:73
9896
msgid ":c:func:`PyModule_Create`"
9997
msgstr ":c:func:`PyModule_Create`"
10098

101-
#: ../../c-api/allocation.rst:73
99+
#: ../../c-api/allocation.rst:74
102100
msgid "To allocate and create extension modules."
103101
msgstr "分配内存和创建扩展模块"

0 commit comments

Comments
 (0)