@@ -337,19 +337,23 @@ msgid ""
337337" an instance of the type. This is used to create *class methods*, similar "
338338"to what is created when using the :func:`classmethod` built-in function."
339339msgstr ""
340+ "该方法将接受类型对象而不是类型的实例作为第一个形参。 它会被用于创建 *类方法*,类似于使用 :func:`classmethod` "
341+ "内置函数所创建的结果。"
340342
341343#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:252
342344msgid ""
343345"The method will be passed ``NULL`` as the first parameter rather than an "
344346"instance of the type. This is used to create *static methods*, similar to "
345347"what is created when using the :func:`staticmethod` built-in function."
346348msgstr ""
349+ "该方法将接受 ``NULL`` 而不是类型的实例作为第一个形参。 它会被用于创建 *静态方法*,类似于使用 :func:`staticmethod` "
350+ "内置函数所创建的结果。"
347351
348352#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:256
349353msgid ""
350354"One other constant controls whether a method is loaded in place of another "
351355"definition with the same method name."
352- msgstr ""
356+ msgstr "另一个常量控制方法是否将被载入来替代具有相同方法名的另一个定义。 "
353357
354358#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:262
355359msgid ""
@@ -363,12 +367,16 @@ msgid ""
363367"helpful because calls to PyCFunctions are optimized more than wrapper object"
364368" calls."
365369msgstr ""
370+ "该方法将被载入来替代现有的定义。 如果没有 *METH_COEXIST*,默认将跳过重复的定义。 由于槽位包装器会在方法表之前被载入,例如当存在 "
371+ "*sq_contains* 槽位时,将会生成一个名为 :meth:`__contains__` 的已包装方法并阻止载入具有相同名称的对应 "
372+ "PyCFunction。 如果定义了此旗标,则 PyCFunction 将被载入来替代此包装器对象并将与槽位共存。 因为对This is helpful"
373+ " because calls to PyCFunctions 的调用比包装器对象调用更为优化所以这是很有帮助的。"
366374
367375#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:275
368376msgid ""
369377"Structure which describes an attribute of a type which corresponds to a C "
370378"struct member. Its fields are:"
371- msgstr ""
379+ msgstr "描述与某个 C 结构体成员相对应的类型的属性的结构体。 它的字段有: "
372380
373381#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:281
374382msgid ":attr:`name`"
@@ -418,10 +426,12 @@ msgid ""
418426"types. When the member is accessed in Python, it will be converted to the "
419427"equivalent Python type."
420428msgstr ""
429+ ":attr:`!type` 可以是与各种 C 类型相对应的许多 ``T_`` 宏中的一个。 当在 Python 中访问该成员时,它将被转换为等价的 "
430+ "Python 类型。"
421431
422432#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:303
423433msgid "Macro name"
424- msgstr ""
434+ msgstr "宏名称 "
425435
426436#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:303
427437msgid "C type"
0 commit comments