@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.10\n "
13
13
"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 "
15
15
"PO-Revision-Date : 2025-09-22 15:57+0000\n "
16
16
"Last-Translator : python-doc bot, 2025\n "
17
17
"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`"
104
104
msgstr "<R> :c:member:`~PyTypeObject.tp_name`"
105
105
106
106
#: ../../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
108
108
msgid "const char *"
109
109
msgstr "const char *"
110
110
111
111
#: ../../c-api/typeobj.rst:44
112
112
msgid "__name__"
113
113
msgstr "__name__"
114
114
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
116
118
#: ../../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
125
133
#: ../../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
129
139
#: ../../c-api/typeobj.rst:126 ../../c-api/typeobj.rst:128
140
+ #: ../../c-api/typeobj.rst:128 ../../c-api/typeobj.rst:130
130
141
#: ../../c-api/typeobj.rst:130 ../../c-api/typeobj.rst:146
131
142
msgid "X"
132
143
msgstr "X"
@@ -138,7 +149,8 @@ msgstr ":c:member:`~PyTypeObject.tp_basicsize`"
138
149
#: ../../c-api/typeobj.rst:46 ../../c-api/typeobj.rst:48
139
150
#: ../../c-api/typeobj.rst:52 ../../c-api/typeobj.rst:99
140
151
#: ../../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
142
154
msgid ":c:type:`Py_ssize_t`"
143
155
msgstr ":c:type:`Py_ssize_t`"
144
156
@@ -313,8 +325,9 @@ msgstr "unsigned long"
313
325
314
326
#: ../../c-api/typeobj.rst:84 ../../c-api/typeobj.rst:99
315
327
#: ../../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
318
331
msgid "?"
319
332
msgstr "?"
320
333
@@ -427,13 +440,33 @@ msgstr ":c:member:`~PyTypeObject.tp_dict`"
427
440
#: ../../c-api/typeobj.rst:134 ../../c-api/typeobj.rst:136
428
441
#: ../../c-api/typeobj.rst:138 ../../c-api/typeobj.rst:140
429
442
#: ../../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
433
457
#: ../../c-api/typeobj.rst:404 ../../c-api/typeobj.rst:410
458
+ #: ../../c-api/typeobj.rst:410 ../../c-api/typeobj.rst:412
434
459
#: ../../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
437
470
msgid ":c:type:`PyObject` *"
438
471
msgstr ":c:type:`PyObject` *"
439
472
@@ -916,7 +949,7 @@ msgstr ":c:member:`~PyNumberMethods.nb_reserved`"
916
949
917
950
#: ../../c-api/typeobj.rst:277 ../../c-api/typeobj.rst:344
918
951
#: ../../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
920
953
msgid "void *"
921
954
msgstr "void *"
922
955
@@ -1122,9 +1155,9 @@ msgstr ":c:type:`visitproc`"
1122
1155
#: ../../c-api/typeobj.rst:348 ../../c-api/typeobj.rst:360
1123
1156
#: ../../c-api/typeobj.rst:373 ../../c-api/typeobj.rst:384
1124
1157
#: ../../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
1128
1161
msgid "int"
1129
1162
msgstr "int"
1130
1163
@@ -1136,7 +1169,7 @@ msgstr "Py_hash_t"
1136
1169
msgid ":c:type:`getbufferproc`"
1137
1170
msgstr ":c:type:`getbufferproc`"
1138
1171
1139
- #: ../../c-api/typeobj.rst:0
1172
+ #: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
1140
1173
msgid ":c:type:`Py_buffer` *"
1141
1174
msgstr ":c:type:`Py_buffer` *"
1142
1175
@@ -1253,6 +1286,9 @@ msgid ""
1253
1286
"initializes it to the :attr:`ob_type` field of the base class. "
1254
1287
":c:func:`PyType_Ready` will not change this field if it is non-zero."
1255
1288
msgstr ""
1289
+ "这应该在创建该类型的任何实例之前完成。:c:func:`PyType_Ready` 检查 :attr:`ob_type` 是否为 "
1290
+ "``NULL``,如果是,则用基类的 :attr:`ob_type` 字段初始化它。如果该字段非零,则 :c:func:`PyType_Ready` "
1291
+ "不会更改它。"
1256
1292
1257
1293
#: ../../c-api/typeobj.rst:526 ../../c-api/typeobj.rst:708
1258
1294
#: ../../c-api/typeobj.rst:824 ../../c-api/typeobj.rst:916
@@ -1322,6 +1358,9 @@ msgid ""
1322
1358
":c:type:`PyBaseObject_Type` and :c:type:`PyType_Type` effectively act as "
1323
1359
"defaults.)"
1324
1360
msgstr ""
1361
+ "每个槽位都有一个部分来描述继承关系。如果 :c:func:`PyType_Ready` 会在该字段为 ``NULL`` "
1362
+ "时设置它的值,那么也会有一个“默认”部分。(注意,在 :c:type:`PyBaseObject_Type` 和 "
1363
+ ":c:type:`PyType_Type` 中设置的许多字段实际上就是默认值。)"
1325
1364
1326
1365
#: ../../c-api/typeobj.rst:575
1327
1366
msgid ""
@@ -1334,6 +1373,10 @@ msgid ""
1334
1373
":mod:`Q` in package :mod:`P` should have the "
1335
1374
":c:member:`~PyTypeObject.tp_name` initializer ``\" P.Q.M.T\" ``."
1336
1375
msgstr ""
1376
+ "指针,指向以 NULL "
1377
+ "结尾的表示类型名称的字符串。对于可以作为模块的全局变量访问的类型,字符串应该是完整的模块名,后跟一个点,再后跟类型名。对于内置类型,字符串应该只是类型名。如果模块是包的子模块,则完整的包名是完整的模块名的一部分。例如,包"
1378
+ " :mod:`P` 的子包 :mod:`Q` 的模块 :mod:`M` 中定义的类型 :class:`T` 的 "
1379
+ ":c:member:`~PyTypeObject.tp_name` 应该初始化为 ``\" P.Q.M.T\" ``。"
1337
1380
1338
1381
#: ../../c-api/typeobj.rst:583
1339
1382
msgid ""
@@ -1481,13 +1524,23 @@ msgid ""
1481
1524
":c:func:`PyObject_GC_Del` if the instance was allocated using "
1482
1525
":c:func:`PyObject_GC_New` or :c:func:`PyObject_GC_NewVar`."
1483
1526
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`。"
1484
1535
1485
1536
#: ../../c-api/typeobj.rst:678
1486
1537
msgid ""
1487
1538
"If the type supports garbage collection (has the :const:`Py_TPFLAGS_HAVE_GC`"
1488
1539
" flag bit set), the destructor should call :c:func:`PyObject_GC_UnTrack` "
1489
1540
"before clearing any member fields."
1490
1541
msgstr ""
1542
+ "如果该类型支持垃圾回收(设置了 :const:`Py_TPFLAGS_HAVE_GC` 标志位),析构器应该在清理任何成员字段之前调用 "
1543
+ ":c:func:`PyObject_GC_UnTrack`。"
1491
1544
1492
1545
#: ../../c-api/typeobj.rst:690
1493
1546
msgid ""
@@ -2001,12 +2054,17 @@ msgid ""
2001
2054
"related fields :c:member:`~PyTypeObject.tp_traverse` and "
2002
2055
":c:member:`~PyTypeObject.tp_clear` are present in the type object."
2003
2056
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`。"
2004
2061
2005
2062
#: ../../c-api/typeobj.rst:1100 ../../c-api/typeobj.rst:1358
2006
2063
#: ../../c-api/typeobj.rst:1426
2007
2064
msgid ""
2008
2065
"Group: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`"
2009
2066
msgstr ""
2067
+ "分组: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`"
2010
2068
2011
2069
#: ../../c-api/typeobj.rst:1102
2012
2070
msgid ""
@@ -3044,7 +3102,7 @@ msgstr ""
3044
3102
3045
3103
#: ../../c-api/typeobj.rst:1886
3046
3104
msgid "For static subtypes, :c:type:`PyBaseObject_Type` uses PyObject_Del."
3047
- msgstr ""
3105
+ msgstr "对于静态子类型,:c:type:`PyBaseObject_Type` 使用 PyObject_Del. "
3048
3106
3049
3107
#: ../../c-api/typeobj.rst:1891
3050
3108
msgid "An optional pointer to a function called by the garbage collector."
0 commit comments