Skip to content

Commit 7e30791

Browse files
[po] auto sync
1 parent f70df87 commit 7e30791

File tree

3 files changed

+166
-38
lines changed

3 files changed

+166
-38
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "96.61%", "updated_at": "2025-09-24T05:30:47Z"}
1+
{"translation": "96.67%", "updated_at": "2025-09-24T06:35:16Z"}

c-api/typeobj.po

Lines changed: 86 additions & 28 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: 2025-01-03 16:02+0000\n"
14+
"POT-Creation-Date: 2025-09-23 17:01+0000\n"
1515
"PO-Revision-Date: 2025-09-22 15:57+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -104,29 +104,40 @@ msgid "<R> :c:member:`~PyTypeObject.tp_name`"
104104
msgstr "<R> :c:member:`~PyTypeObject.tp_name`"
105105

106106
#: ../../c-api/typeobj.rst:44 ../../c-api/typeobj.rst:86
107-
#: ../../c-api/typeobj.rst:0
107+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
108108
msgid "const char *"
109109
msgstr "const char *"
110110

111111
#: ../../c-api/typeobj.rst:44
112112
msgid "__name__"
113113
msgstr "__name__"
114114

115-
#: ../../c-api/typeobj.rst:44 ../../c-api/typeobj.rst:46
115+
#: ../../c-api/typeobj.rst:44 ../../c-api/typeobj.rst:44
116+
#: ../../c-api/typeobj.rst:46 ../../c-api/typeobj.rst:46
117+
#: ../../c-api/typeobj.rst:46 ../../c-api/typeobj.rst:48
116118
#: ../../c-api/typeobj.rst:48 ../../c-api/typeobj.rst:50
117-
#: ../../c-api/typeobj.rst:52 ../../c-api/typeobj.rst:62
118-
#: ../../c-api/typeobj.rst:70 ../../c-api/typeobj.rst:72
119-
#: ../../c-api/typeobj.rst:74 ../../c-api/typeobj.rst:76
120-
#: ../../c-api/typeobj.rst:79 ../../c-api/typeobj.rst:84
121-
#: ../../c-api/typeobj.rst:86 ../../c-api/typeobj.rst:88
122-
#: ../../c-api/typeobj.rst:90 ../../c-api/typeobj.rst:92
123-
#: ../../c-api/typeobj.rst:99 ../../c-api/typeobj.rst:101
124-
#: ../../c-api/typeobj.rst:103 ../../c-api/typeobj.rst:105
119+
#: ../../c-api/typeobj.rst:50 ../../c-api/typeobj.rst:50
120+
#: ../../c-api/typeobj.rst:52 ../../c-api/typeobj.rst:52
121+
#: ../../c-api/typeobj.rst:62 ../../c-api/typeobj.rst:62
122+
#: ../../c-api/typeobj.rst:62 ../../c-api/typeobj.rst:70
123+
#: ../../c-api/typeobj.rst:72 ../../c-api/typeobj.rst:72
124+
#: ../../c-api/typeobj.rst:74 ../../c-api/typeobj.rst:74
125+
#: ../../c-api/typeobj.rst:76 ../../c-api/typeobj.rst:76
126+
#: ../../c-api/typeobj.rst:79 ../../c-api/typeobj.rst:79
127+
#: ../../c-api/typeobj.rst:84 ../../c-api/typeobj.rst:84
128+
#: ../../c-api/typeobj.rst:86 ../../c-api/typeobj.rst:86
129+
#: ../../c-api/typeobj.rst:88 ../../c-api/typeobj.rst:90
130+
#: ../../c-api/typeobj.rst:92 ../../c-api/typeobj.rst:99
131+
#: ../../c-api/typeobj.rst:101 ../../c-api/typeobj.rst:103
132+
#: ../../c-api/typeobj.rst:105 ../../c-api/typeobj.rst:105
125133
#: ../../c-api/typeobj.rst:107 ../../c-api/typeobj.rst:109
126-
#: ../../c-api/typeobj.rst:111 ../../c-api/typeobj.rst:115
127-
#: ../../c-api/typeobj.rst:117 ../../c-api/typeobj.rst:120
128-
#: ../../c-api/typeobj.rst:122 ../../c-api/typeobj.rst:124
134+
#: ../../c-api/typeobj.rst:109 ../../c-api/typeobj.rst:111
135+
#: ../../c-api/typeobj.rst:115 ../../c-api/typeobj.rst:117
136+
#: ../../c-api/typeobj.rst:120 ../../c-api/typeobj.rst:122
137+
#: ../../c-api/typeobj.rst:122 ../../c-api/typeobj.rst:122
138+
#: ../../c-api/typeobj.rst:124 ../../c-api/typeobj.rst:126
129139
#: ../../c-api/typeobj.rst:126 ../../c-api/typeobj.rst:128
140+
#: ../../c-api/typeobj.rst:128 ../../c-api/typeobj.rst:130
130141
#: ../../c-api/typeobj.rst:130 ../../c-api/typeobj.rst:146
131142
msgid "X"
132143
msgstr "X"
@@ -138,7 +149,8 @@ msgstr ":c:member:`~PyTypeObject.tp_basicsize`"
138149
#: ../../c-api/typeobj.rst:46 ../../c-api/typeobj.rst:48
139150
#: ../../c-api/typeobj.rst:52 ../../c-api/typeobj.rst:99
140151
#: ../../c-api/typeobj.rst:120 ../../c-api/typeobj.rst:0
141-
#: ../../c-api/typeobj.rst:414
152+
#: ../../c-api/typeobj.rst:414 ../../c-api/typeobj.rst:0
153+
#: ../../c-api/typeobj.rst:0
142154
msgid ":c:type:`Py_ssize_t`"
143155
msgstr ":c:type:`Py_ssize_t`"
144156

@@ -313,8 +325,9 @@ msgstr "unsigned long"
313325

314326
#: ../../c-api/typeobj.rst:84 ../../c-api/typeobj.rst:99
315327
#: ../../c-api/typeobj.rst:113 ../../c-api/typeobj.rst:120
316-
#: ../../c-api/typeobj.rst:124 ../../c-api/typeobj.rst:126
317-
#: ../../c-api/typeobj.rst:128
328+
#: ../../c-api/typeobj.rst:124 ../../c-api/typeobj.rst:124
329+
#: ../../c-api/typeobj.rst:126 ../../c-api/typeobj.rst:126
330+
#: ../../c-api/typeobj.rst:128 ../../c-api/typeobj.rst:128
318331
msgid "?"
319332
msgstr "?"
320333

@@ -427,13 +440,33 @@ msgstr ":c:member:`~PyTypeObject.tp_dict`"
427440
#: ../../c-api/typeobj.rst:134 ../../c-api/typeobj.rst:136
428441
#: ../../c-api/typeobj.rst:138 ../../c-api/typeobj.rst:140
429442
#: ../../c-api/typeobj.rst:339 ../../c-api/typeobj.rst:0
430-
#: ../../c-api/typeobj.rst:354 ../../c-api/typeobj.rst:366
431-
#: ../../c-api/typeobj.rst:368 ../../c-api/typeobj.rst:379
432-
#: ../../c-api/typeobj.rst:390 ../../c-api/typeobj.rst:402
443+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
444+
#: ../../c-api/typeobj.rst:354 ../../c-api/typeobj.rst:0
445+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
446+
#: ../../c-api/typeobj.rst:366 ../../c-api/typeobj.rst:366
447+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:368
448+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
449+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
450+
#: ../../c-api/typeobj.rst:379 ../../c-api/typeobj.rst:0
451+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
452+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
453+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:390
454+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
455+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:402
456+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
433457
#: ../../c-api/typeobj.rst:404 ../../c-api/typeobj.rst:410
458+
#: ../../c-api/typeobj.rst:410 ../../c-api/typeobj.rst:412
434459
#: ../../c-api/typeobj.rst:412 ../../c-api/typeobj.rst:414
435-
#: ../../c-api/typeobj.rst:429 ../../c-api/typeobj.rst:433
436-
#: ../../c-api/typeobj.rst:438 ../../c-api/typeobj.rst:444
460+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
461+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:429
462+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
463+
#: ../../c-api/typeobj.rst:433 ../../c-api/typeobj.rst:0
464+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
465+
#: ../../c-api/typeobj.rst:438 ../../c-api/typeobj.rst:0
466+
#: ../../c-api/typeobj.rst:444 ../../c-api/typeobj.rst:0
467+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
468+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
469+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
437470
msgid ":c:type:`PyObject` *"
438471
msgstr ":c:type:`PyObject` *"
439472

@@ -916,7 +949,7 @@ msgstr ":c:member:`~PyNumberMethods.nb_reserved`"
916949

917950
#: ../../c-api/typeobj.rst:277 ../../c-api/typeobj.rst:344
918951
#: ../../c-api/typeobj.rst:346 ../../c-api/typeobj.rst:0
919-
#: ../../c-api/typeobj.rst:427
952+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:427
920953
msgid "void *"
921954
msgstr "void *"
922955

@@ -1122,9 +1155,9 @@ msgstr ":c:type:`visitproc`"
11221155
#: ../../c-api/typeobj.rst:348 ../../c-api/typeobj.rst:360
11231156
#: ../../c-api/typeobj.rst:373 ../../c-api/typeobj.rst:384
11241157
#: ../../c-api/typeobj.rst:396 ../../c-api/typeobj.rst:0
1125-
#: ../../c-api/typeobj.rst:416 ../../c-api/typeobj.rst:427
1126-
#: ../../c-api/typeobj.rst:449 ../../c-api/typeobj.rst:455
1127-
#: ../../c-api/typeobj.rst:460
1158+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:416
1159+
#: ../../c-api/typeobj.rst:427 ../../c-api/typeobj.rst:449
1160+
#: ../../c-api/typeobj.rst:455 ../../c-api/typeobj.rst:460
11281161
msgid "int"
11291162
msgstr "int"
11301163

@@ -1136,7 +1169,7 @@ msgstr "Py_hash_t"
11361169
msgid ":c:type:`getbufferproc`"
11371170
msgstr ":c:type:`getbufferproc`"
11381171

1139-
#: ../../c-api/typeobj.rst:0
1172+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
11401173
msgid ":c:type:`Py_buffer` *"
11411174
msgstr ":c:type:`Py_buffer` *"
11421175

@@ -1253,6 +1286,9 @@ msgid ""
12531286
"initializes it to the :attr:`ob_type` field of the base class. "
12541287
":c:func:`PyType_Ready` will not change this field if it is non-zero."
12551288
msgstr ""
1289+
"这应该在创建该类型的任何实例之前完成。:c:func:`PyType_Ready` 检查 :attr:`ob_type` 是否为 "
1290+
"``NULL``,如果是,则用基类的 :attr:`ob_type` 字段初始化它。如果该字段非零,则 :c:func:`PyType_Ready` "
1291+
"不会更改它。"
12561292

12571293
#: ../../c-api/typeobj.rst:526 ../../c-api/typeobj.rst:708
12581294
#: ../../c-api/typeobj.rst:824 ../../c-api/typeobj.rst:916
@@ -1322,6 +1358,9 @@ msgid ""
13221358
":c:type:`PyBaseObject_Type` and :c:type:`PyType_Type` effectively act as "
13231359
"defaults.)"
13241360
msgstr ""
1361+
"每个槽位都有一个部分来描述继承关系。如果 :c:func:`PyType_Ready` 会在该字段为 ``NULL`` "
1362+
"时设置它的值,那么也会有一个“默认”部分。(注意,在 :c:type:`PyBaseObject_Type` 和 "
1363+
":c:type:`PyType_Type` 中设置的许多字段实际上就是默认值。)"
13251364

13261365
#: ../../c-api/typeobj.rst:575
13271366
msgid ""
@@ -1334,6 +1373,10 @@ msgid ""
13341373
":mod:`Q` in package :mod:`P` should have the "
13351374
":c:member:`~PyTypeObject.tp_name` initializer ``\"P.Q.M.T\"``."
13361375
msgstr ""
1376+
"指针,指向以 NULL "
1377+
"结尾的表示类型名称的字符串。对于可以作为模块的全局变量访问的类型,字符串应该是完整的模块名,后跟一个点,再后跟类型名。对于内置类型,字符串应该只是类型名。如果模块是包的子模块,则完整的包名是完整的模块名的一部分。例如,包"
1378+
" :mod:`P` 的子包 :mod:`Q` 的模块 :mod:`M` 中定义的类型 :class:`T` 的 "
1379+
":c:member:`~PyTypeObject.tp_name` 应该初始化为 ``\"P.Q.M.T\"``。"
13371380

13381381
#: ../../c-api/typeobj.rst:583
13391382
msgid ""
@@ -1481,13 +1524,23 @@ msgid ""
14811524
":c:func:`PyObject_GC_Del` if the instance was allocated using "
14821525
":c:func:`PyObject_GC_New` or :c:func:`PyObject_GC_NewVar`."
14831526
msgstr ""
1527+
"当引用计数为0时,由 :c:func:`Py_DECREF` 和 :c:func:`Py_XDECREF` "
1528+
"宏调用析构函数。此时,实例仍然存在,但已经没有了对它的引用。析构函数应该释放该实例拥有的所有引用,释放该实例拥有的所有内存缓冲区(通过分配内存对应的释放函数),并调用该类型的"
1529+
" :c:member:`~PyTypeObject.tp_free` 函数。如果该类型不可子类型化(没有设置 "
1530+
":const:`Py_TPFLAGS_BASETYPE` 标志位),则允许直接调用对象的释放函数,不必调用 "
1531+
":c:member:`~PyTypeObject.tp_free`。对象的释放函数应该与分配函数对应:如果使用 "
1532+
":c:func:`PyObject_New` 或 :c:func:`PyObject_VarNew` 分配,通常为 "
1533+
":c:func:`PyObject_Del`;如果使用 :c:func:`PyObject_GC_New` 或 "
1534+
":c:func:`PyObject_GC_NewVar` 分配,通常为 :c:func:`PyObject_GC_Del`。"
14841535

14851536
#: ../../c-api/typeobj.rst:678
14861537
msgid ""
14871538
"If the type supports garbage collection (has the :const:`Py_TPFLAGS_HAVE_GC`"
14881539
" flag bit set), the destructor should call :c:func:`PyObject_GC_UnTrack` "
14891540
"before clearing any member fields."
14901541
msgstr ""
1542+
"如果该类型支持垃圾回收(设置了 :const:`Py_TPFLAGS_HAVE_GC` 标志位),析构器应该在清理任何成员字段之前调用 "
1543+
":c:func:`PyObject_GC_UnTrack`。"
14911544

14921545
#: ../../c-api/typeobj.rst:690
14931546
msgid ""
@@ -2001,12 +2054,17 @@ msgid ""
20012054
"related fields :c:member:`~PyTypeObject.tp_traverse` and "
20022055
":c:member:`~PyTypeObject.tp_clear` are present in the type object."
20032056
msgstr ""
2057+
"当此对象支持垃圾回收时该比特位将被设置。 如果设置了该比特位,则实例必须使用 :c:func:`PyObject_GC_New` 来创建并使用 "
2058+
":c:func:`PyObject_GC_Del` 来销毁。 更多信息见 :ref:`supporting-cycle-detection` 一节。 "
2059+
"该比特位还表明与类型对象中存在 GC 相关字段 :c:member:`~PyTypeObject.tp_traverse` 和 "
2060+
":c:member:`~PyTypeObject.tp_clear`。"
20042061

20052062
#: ../../c-api/typeobj.rst:1100 ../../c-api/typeobj.rst:1358
20062063
#: ../../c-api/typeobj.rst:1426
20072064
msgid ""
20082065
"Group: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`"
20092066
msgstr ""
2067+
"分组: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`"
20102068

20112069
#: ../../c-api/typeobj.rst:1102
20122070
msgid ""
@@ -3044,7 +3102,7 @@ msgstr ""
30443102

30453103
#: ../../c-api/typeobj.rst:1886
30463104
msgid "For static subtypes, :c:type:`PyBaseObject_Type` uses PyObject_Del."
3047-
msgstr ""
3105+
msgstr "对于静态子类型,:c:type:`PyBaseObject_Type` 使用 PyObject_Del."
30483106

30493107
#: ../../c-api/typeobj.rst:1891
30503108
msgid "An optional pointer to a function called by the garbage collector."

0 commit comments

Comments
 (0)