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

Skip to content

Commit 488af86

Browse files
[po] auto sync
1 parent fa234f8 commit 488af86

12 files changed

Lines changed: 1078 additions & 1117 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.63%", "updated_at": "2023-08-10T01:53:42Z"}
1+
{"translation": "89.56%", "updated_at": "2023-08-11T15:32:46Z"}

c-api/allocation.po

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.10\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-07-14 15:16+0000\n"
14+
"POT-Creation-Date: 2023-08-11 15:16+0000\n"
1515
"PO-Revision-Date: 2022-11-05 17:21+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2022\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -46,15 +46,13 @@ msgstr "它的功能和 :c:func:`PyObject_Init` 一样,并且会初始化变
4646
msgid ""
4747
"Allocate a new Python object using the C structure type *TYPE* and the "
4848
"Python type object *type*. Fields not defined by the Python object header "
49-
"are not initialized; the object's reference count will be one. The size of "
50-
"the memory allocation is determined from the "
51-
":c:member:`~PyTypeObject.tp_basicsize` field of the type object."
49+
"are not initialized. The caller will own the only reference to the object "
50+
"(i.e. its reference count will be one). The size of the memory allocation is"
51+
" determined from the :c:member:`~PyTypeObject.tp_basicsize` field of the "
52+
"type object."
5253
msgstr ""
53-
"使用 C 结构类型 *TYPE* 和 Python 类型对象 *type* 分配一个新的 Python 对象。 未在该 Python "
54-
"对象标头中定义的字段不会被初始化;对象的引用计数将为一。 内存分配大小由 type 对象的 "
55-
":c:member:`~PyTypeObject.tp_basicsize` 字段来确定。"
5654

57-
#: ../../c-api/allocation.rst:41
55+
#: ../../c-api/allocation.rst:43
5856
msgid ""
5957
"Allocate a new Python object using the C structure type *TYPE* and the "
6058
"Python type object *type*. Fields not defined by the Python object header "
@@ -71,7 +69,7 @@ msgstr ""
7169
":c:member:`~PyTypeObject.tp_itemsize` 字段提供的 *size* "
7270
"字段的值。这对于实现类似元组这种能够在构造期决定自己大小的对象是很实用的。将字段的数组嵌入到相同的内存分配中可以减少内存分配的次数,这提高了内存分配的效率。"
7371

74-
#: ../../c-api/allocation.rst:53
72+
#: ../../c-api/allocation.rst:55
7573
msgid ""
7674
"Releases memory allocated to an object using :c:func:`PyObject_New` or "
7775
":c:func:`PyObject_NewVar`. This is normally called from the "
@@ -83,18 +81,18 @@ msgstr ""
8381
"分配内存的对象。这通常由对象的type字段定义的 :c:member:`~PyTypeObject.tp_dealloc` "
8482
"处理函数来调用。调用这个函数以后op对象中的字段都不可以被访问,因为原分配的内存空间已不再是一个有效的Python对象。"
8583

86-
#: ../../c-api/allocation.rst:62
84+
#: ../../c-api/allocation.rst:64
8785
msgid ""
8886
"Object which is visible in Python as ``None``. This should only be accessed"
8987
" using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
9088
"object."
9189
msgstr ""
9290
"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
9391

94-
#: ../../c-api/allocation.rst:69
92+
#: ../../c-api/allocation.rst:71
9593
msgid ":c:func:`PyModule_Create`"
9694
msgstr ":c:func:`PyModule_Create`"
9795

98-
#: ../../c-api/allocation.rst:70
96+
#: ../../c-api/allocation.rst:72
9997
msgid "To allocate and create extension modules."
10098
msgstr "分配内存和创建扩展模块"

0 commit comments

Comments
 (0)