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

Skip to content

Commit da8d560

Browse files
[po] auto sync
1 parent d0040ee commit da8d560

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.72%", "updated_at": "2024-01-08T01:33:26Z"}
1+
{"translation": "89.74%", "updated_at": "2024-01-10T10:09:15Z"}

c-api/typeobj.po

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,6 +2304,10 @@ msgid ""
23042304
" and write the type's :c:member:`~PyTypeObject.tp_dealloc` function to "
23052305
"invoke :c:member:`~PyTypeObject.tp_clear`."
23062306
msgstr ""
2307+
"因为 :c:member:`~PyTypeObject.tp_clear` 函数的目的是打破循环引用,所以不需要清除所包含的对象如 Python "
2308+
"字符串或 Python 整数,它们无法参与循环引用。 另一方面,清除所包含的全部 Python 对象,并编写类型的 "
2309+
":c:member:`~PyTypeObject.tp_dealloc` 函数来发起调用 "
2310+
":c:member:`~PyTypeObject.tp_clear` 也很方便。"
23072311

23082312
#: ../../c-api/typeobj.rst:1322
23092313
msgid ""
@@ -2317,13 +2321,13 @@ msgstr ""
23172321
#: ../../c-api/typeobj.rst:1330
23182322
msgid ""
23192323
"An optional pointer to the rich comparison function, whose signature is::"
2320-
msgstr ""
2324+
msgstr "一个可选的指向富比较函数的指针,函数的签名为::"
23212325

23222326
#: ../../c-api/typeobj.rst:1334
23232327
msgid ""
23242328
"The first parameter is guaranteed to be an instance of the type that is "
23252329
"defined by :c:type:`PyTypeObject`."
2326-
msgstr ""
2330+
msgstr "第一个形参将保证为 :c:type:`PyTypeObject` 所定义的类型的实例。"
23272331

23282332
#: ../../c-api/typeobj.rst:1337
23292333
msgid ""
@@ -2332,6 +2336,8 @@ msgid ""
23322336
"``Py_NotImplemented``, if another error occurred it must return ``NULL`` and"
23332337
" set an exception condition."
23342338
msgstr ""
2339+
"该函数应当返回比较的结果 (通常为 ``Py_True`` 或 ``Py_False``)。 如果未定义比较运算,它必须返回 "
2340+
"``Py_NotImplemented``,如果发生了其他错误则它必须返回 ``NULL`` 并设置一个异常条件。"
23352341

23362342
#: ../../c-api/typeobj.rst:1342
23372343
msgid ""
@@ -2633,17 +2639,17 @@ msgstr "因此,应当在扩展模块的初始化函数中设置 :c:member:`~Py
26332639

26342640
#: ../../c-api/typeobj.rst:1536
26352641
msgid "This field is not inherited by subtypes (obviously)."
2636-
msgstr ""
2642+
msgstr "该字段不会被子类型继承(显然)。"
26372643

26382644
#: ../../c-api/typeobj.rst:1540
26392645
msgid ""
26402646
"This field defaults to ``&PyBaseObject_Type`` (which to Python programmers "
26412647
"is known as the type :class:`object`)."
2642-
msgstr ""
2648+
msgstr "该字段默认为 ``&PyBaseObject_Type`` (对 Python 程序员来说即 :class:`object` 类型)。"
26432649

26442650
#: ../../c-api/typeobj.rst:1546
26452651
msgid "The type's dictionary is stored here by :c:func:`PyType_Ready`."
2646-
msgstr ""
2652+
msgstr "类型的字典将由 :c:func:`PyType_Ready` 存储到这里。"
26472653

26482654
#: ../../c-api/typeobj.rst:1548
26492655
msgid ""
@@ -2674,7 +2680,7 @@ msgstr ""
26742680

26752681
#: ../../c-api/typeobj.rst:1572
26762682
msgid "An optional pointer to a \"descriptor get\" function."
2677-
msgstr ""
2683+
msgstr "一个可选的指向“描述器获取”函数的指针。"
26782684

26792685
#: ../../c-api/typeobj.rst:1574 ../../c-api/typeobj.rst:1590
26802686
#: ../../c-api/typeobj.rst:1672 ../../c-api/typeobj.rst:1702
@@ -3081,6 +3087,8 @@ msgid ""
30813087
":c:type:`PyTypeObject` structure is defined directly in code and initialized"
30823088
" using :c:func:`PyType_Ready`."
30833089
msgstr ""
3090+
"在传统上,在 C 代码中定义的类型都是 *静态的*,也就是说,:c:type:`PyTypeObject` 结构体在代码中直接定义并使用 "
3091+
":c:func:`PyType_Ready` 来初始化。"
30843092

30853093
#: ../../c-api/typeobj.rst:1960
30863094
msgid ""

0 commit comments

Comments
 (0)