@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.12\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2023-07-29 02:08 +0000\n "
16+ "POT-Creation-Date : 2023-08-11 14:13 +0000\n "
1717"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1818"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
1919"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -270,13 +270,17 @@ msgid ""
270270"first parameter as :c:expr:`PyObject*`, it is common that the method "
271271"implementation uses the specific C type of the *self* object."
272272msgstr ""
273+ ":c:member:`~PyMethodDef.ml_meth` 是一个 C 函数指针。 该函数可以为不同类型,但它们将总是返回 "
274+ ":c:expr:`PyObject*`。 如果该函数不属于 :c:type:`PyCFunction`,则编译器将要求在方法表中进行转换。 尽管 "
275+ ":c:type:`PyCFunction` 将第一个参数定义为 :c:expr:`PyObject*`,但该方法的实现使用 *self* 对象的特定 C"
276+ " 类型也很常见。"
273277
274278#: ../../c-api/structures.rst:255
275279msgid ""
276280"The :c:member:`~PyMethodDef.ml_flags` field is a bitfield which can include "
277281"the following flags. The individual flags indicate either a calling "
278282"convention or a binding convention."
279- msgstr ""
283+ msgstr ":c:member:`~PyMethodDef.ml_flags` 字段是可以包含以下旗标的位字段。 每个旗标表示一个调用惯例或绑定惯例。 "
280284
281285#: ../../c-api/structures.rst:260
282286msgid "There are these calling conventions:"
@@ -303,10 +307,14 @@ msgid ""
303307":ref:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS <METH_METHOD-"
304308"METH_FASTCALL-METH_KEYWORDS>`."
305309msgstr ""
310+ "只能用于同其他旗标形成特定的组合: :ref:`METH_VARARGS | METH_KEYWORDS <METH_VARARGS-"
311+ "METH_KEYWORDS>`, :ref:`METH_FASTCALL | METH_KEYWORDS <METH_FASTCALL-"
312+ "METH_KEYWORDS>` 和 :ref:`METH_METHOD | METH_FASTCALL | METH_KEYWORDS "
313+ "<METH_METHOD-METH_FASTCALL-METH_KEYWORDS>`。"
306314
307315#: ../../c-api/structures.rst:288
308316msgid ":c:expr:`METH_VARARGS | METH_KEYWORDS`"
309- msgstr ""
317+ msgstr ":c:expr:`METH_VARARGS | METH_KEYWORDS` "
310318
311319#: ../../c-api/structures.rst:283
312320msgid ""
@@ -333,7 +341,7 @@ msgstr ""
333341
334342#: ../../c-api/structures.rst:302
335343msgid "``METH_FASTCALL`` is now part of the :ref:`stable ABI <stable-abi>`."
336- msgstr ""
344+ msgstr "``METH_FASTCALL`` 现在是 :ref:`稳定 ABI <stable-abi>` 的一部分。 "
337345
338346#: ../../c-api/structures.rst:319
339347msgid ":c:expr:`METH_FASTCALL | METH_KEYWORDS`"
@@ -461,27 +469,27 @@ msgstr "描述与 C 结构成员相对应的类型属性的结构体。 其字
461469#: ../../c-api/structures.rst:413
462470msgid ""
463471"Name of the member. A NULL value marks the end of a ``PyMemberDef[]`` array."
464- msgstr ""
472+ msgstr "成员名称。 NULL 值表示 ``PyMemberDef[]`` 数组的结束。 "
465473
466474#: ../../c-api/structures.rst:416
467475msgid "The string should be static, no copy is made of it."
468- msgstr ""
476+ msgstr "字符串应当是静态的,它不会被复制。 "
469477
470478#: ../../c-api/structures.rst:420
471479msgid ""
472480"The offset in bytes that the member is located on the type’s object struct."
473- msgstr ""
481+ msgstr "成员在类型的对象结构体中所在位置的以字节为单位的偏移量。 "
474482
475483#: ../../c-api/structures.rst:424
476484msgid ""
477485"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the"
478486" possible values."
479- msgstr ""
487+ msgstr "C 结构体中成员的类型。 请参阅 :ref:`PyMemberDef-types` 了解可能的取值。 "
480488
481489#: ../../c-api/structures.rst:429
482490msgid ""
483491"Zero or more of the :ref:`PyMemberDef-flags`, combined using bitwise OR."
484- msgstr ""
492+ msgstr "零个或多个 :ref:`PyMemberDef-flags`,使用按位或运算进行组合。 "
485493
486494#: ../../c-api/structures.rst:433
487495msgid ""
@@ -736,26 +744,28 @@ msgstr ":c:expr:`char` (0-127)"
736744
737745#: ../../c-api/structures.rst:585
738746msgid ":py:class:`str` (**)"
739- msgstr ""
747+ msgstr ":py:class:`str` (**) "
740748
741749#: ../../c-api/structures.rst:586
742750msgid ":c:expr:`PyObject *`"
743- msgstr ""
751+ msgstr ":c:expr:`PyObject *` "
744752
745753#: ../../c-api/structures.rst:586
746754msgid ":py:class:`object` (D)"
747- msgstr ""
755+ msgstr ":py:class:`object` (D) "
748756
749757#: ../../c-api/structures.rst:589
750758msgid ""
751759"(*): Zero-terminated, UTF8-encoded C string. With :c:macro:`!Py_T_STRING` "
752760"the C representation is a pointer; with :c:macro:`!Py_T_STRING_INLINE` the "
753761"string is stored directly in the structure."
754762msgstr ""
763+ "(*): 以零结束的 UTF8 编码的 C 字符串。 使用:c:macro:`!Py_T_STRING` 时的 C 表示形式是指针;使用 "
764+ ":c:macro:`!Py_T_STRING_INLINE` 时字符串将直接存储在结构体中。"
755765
756766#: ../../c-api/structures.rst:594
757767msgid "(**): String of length 1. Only ASCII is accepted."
758- msgstr ""
768+ msgstr "(**): 长度为 1 的字符串。 只接受 ASCII 字符。 "
759769
760770#: ../../c-api/structures.rst:596
761771msgid "(RO): Implies :c:macro:`Py_READONLY`."
0 commit comments