4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
-
8
-
9
- # Naisen Xu <[email protected] >, 2021
10
- # Freesand Leo <[email protected] >, 2024
7
+ # Rafael Fontenelle <[email protected] >, 2024
11
8
#
12
9
#, fuzzy
13
10
msgid ""
14
11
msgstr ""
15
12
"Project-Id-Version : Python 3.12\n "
16
13
"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 "
20
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
21
18
"MIME-Version : 1.0\n "
22
19
"Content-Type : text/plain; charset=UTF-8\n "
@@ -31,21 +28,17 @@ msgstr "在堆上分配对象"
31
28
#: ../../c-api/allocation.rst:17
32
29
msgid ""
33
30
"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* 初始化它的类型和初始引用。 返回初始化后的对象。 对象的其他字段不会被影响。"
41
34
42
- #: ../../c-api/allocation.rst:26
35
+ #: ../../c-api/allocation.rst:24
43
36
msgid ""
44
37
"This does everything :c:func:`PyObject_Init` does, and also initializes the "
45
38
"length information for a variable-size object."
46
39
msgstr "它的功能和 :c:func:`PyObject_Init` 一样,并且会初始化变量大小对象的长度信息。"
47
40
48
- #: ../../c-api/allocation.rst:32
41
+ #: ../../c-api/allocation.rst:30
49
42
msgid ""
50
43
"Allocate a new Python object using the C structure type *TYPE* and the "
51
44
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -58,7 +51,7 @@ msgstr ""
58
51
"对象。 f未在该 Python 对象标头中定义的字段不会被初始化。 调用方将拥有对该对象的唯一引用(即引用计数将为 1)。 内存分配的大小由类型对象的 "
59
52
":c:member:`~PyTypeObject.tp_basicsize` 字段决定。"
60
53
61
- #: ../../c-api/allocation.rst:43
54
+ #: ../../c-api/allocation.rst:41
62
55
msgid ""
63
56
"Allocate a new Python object using the C structure type *TYPE* and the "
64
57
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -75,7 +68,7 @@ msgstr ""
75
68
":c:member:`~PyTypeObject.tp_itemsize` 字段所给出的 *size* (``Py_ssize_t``) 个字段。 "
76
69
"这对于实现像元组这样能够在构造时确定其大小的对象来说很有用。 将字段数组嵌入到相同的内在分配中可减少内存分配的次数,这提高了内存管理效率。"
77
70
78
- #: ../../c-api/allocation.rst:57
71
+ #: ../../c-api/allocation.rst:55
79
72
msgid ""
80
73
"Releases memory allocated to an object using :c:macro:`PyObject_New` or "
81
74
":c:macro:`PyObject_NewVar`. This is normally called from the "
@@ -87,18 +80,18 @@ msgstr ""
87
80
"这通常由在对象的类型中指定的 :c:member:`~PyTypeObject.tp_dealloc` 处理器来调用。 "
88
81
"在此调用之后该对象中的字段不应再被访问因为原来的内存已不再是一个有效的 Python 对象。"
89
82
90
- #: ../../c-api/allocation.rst:66
83
+ #: ../../c-api/allocation.rst:64
91
84
msgid ""
92
85
"Object which is visible in Python as ``None``. This should only be accessed"
93
86
" using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
94
87
"object."
95
88
msgstr ""
96
89
"这个对象是像 ``None`` 一样的 Python 对象。它可以使用 :c:macro:`Py_None` 宏访问,该宏的拿到指向该对象的指针。"
97
90
98
- #: ../../c-api/allocation.rst:73
91
+ #: ../../c-api/allocation.rst:71
99
92
msgid ":c:func:`PyModule_Create`"
100
93
msgstr ":c:func:`PyModule_Create`"
101
94
102
- #: ../../c-api/allocation.rst:74
95
+ #: ../../c-api/allocation.rst:72
103
96
msgid "To allocate and create extension modules."
104
97
msgstr "分配内存和创建扩展模块"
0 commit comments