Skip to content

Commit bc5666b

Browse files
[po] auto sync
1 parent 9f82d8e commit bc5666b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extending/newtypes_tutorial.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ msgid ""
972972
"with a reference to :c:type:`PyList_Type`; it should be done later in the "
973973
"module initialization function::"
974974
msgstr ""
975+
":c:type:`PyTypeObject` 支持用 :c:member:`~PyTypeObject.tp_base` 指定类型的实体基类。 "
976+
"由于跨平台编译器问题,你无法使用对 :c:type:`PyList_Type` 的引用来直接填充该字段;它应当随后在模块初始化函数中完成::"
975977

976978
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/extending/newtypes_tutorial.rst:881
977979
msgid ""
@@ -981,12 +983,15 @@ msgid ""
981983
":c:member:`~PyTypeObject.tp_alloc` slot with :c:func:`PyType_GenericNew` -- "
982984
"the allocation function from the base type will be inherited."
983985
msgstr ""
986+
"在调用 :c:func:`PyType_Ready` 之前,类型结构体必须已经填充 :c:member:`~PyTypeObject.tp_base` "
987+
"槽位。 当我们从现有类型派生时,它不需要将 :c:member:`~PyTypeObject.tp_alloc` 槽位填充为 "
988+
":c:func:`PyType_GenericNew` -- 来自基类型的分配函数将会被继承。"
984989

985990
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/extending/newtypes_tutorial.rst:887
986991
msgid ""
987992
"After that, calling :c:func:`PyType_Ready` and adding the type object to the"
988993
" module is the same as with the basic :class:`Custom` examples."
989-
msgstr ""
994+
msgstr "在那之后,调用 :c:func:`PyType_Ready` 并向模块添加类型对象是与基本的 :class:`Custom` 示例一样的。"
990995

991996
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/extending/newtypes_tutorial.rst:892
992997
msgid "Footnotes"
@@ -1003,6 +1008,7 @@ msgid ""
10031008
"We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler in "
10041009
"this example, because our type doesn't support garbage collection."
10051010
msgstr ""
1011+
"在本示例中我们需要 :c:member:`~PyTypeObject.tp_dealloc` 处理句柄中的这一机制,因为我们的类型不支持垃圾回收。"
10061012

10071013
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/extending/newtypes_tutorial.rst:899
10081014
msgid ""

0 commit comments

Comments
 (0)