@@ -337,19 +337,23 @@ msgid ""
337
337
" an instance of the type. This is used to create *class methods*, similar "
338
338
"to what is created when using the :func:`classmethod` built-in function."
339
339
msgstr ""
340
+ "该方法将接受类型对象而不是类型的实例作为第一个形参。 它会被用于创建 *类方法*,类似于使用 :func:`classmethod` "
341
+ "内置函数所创建的结果。"
340
342
341
343
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:252
342
344
msgid ""
343
345
"The method will be passed ``NULL`` as the first parameter rather than an "
344
346
"instance of the type. This is used to create *static methods*, similar to "
345
347
"what is created when using the :func:`staticmethod` built-in function."
346
348
msgstr ""
349
+ "该方法将接受 ``NULL`` 而不是类型的实例作为第一个形参。 它会被用于创建 *静态方法*,类似于使用 :func:`staticmethod` "
350
+ "内置函数所创建的结果。"
347
351
348
352
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:256
349
353
msgid ""
350
354
"One other constant controls whether a method is loaded in place of another "
351
355
"definition with the same method name."
352
- msgstr ""
356
+ msgstr "另一个常量控制方法是否将被载入来替代具有相同方法名的另一个定义。 "
353
357
354
358
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:262
355
359
msgid ""
@@ -363,12 +367,16 @@ msgid ""
363
367
"helpful because calls to PyCFunctions are optimized more than wrapper object"
364
368
" calls."
365
369
msgstr ""
370
+ "该方法将被载入来替代现有的定义。 如果没有 *METH_COEXIST*,默认将跳过重复的定义。 由于槽位包装器会在方法表之前被载入,例如当存在 "
371
+ "*sq_contains* 槽位时,将会生成一个名为 :meth:`__contains__` 的已包装方法并阻止载入具有相同名称的对应 "
372
+ "PyCFunction。 如果定义了此旗标,则 PyCFunction 将被载入来替代此包装器对象并将与槽位共存。 因为对This is helpful"
373
+ " because calls to PyCFunctions 的调用比包装器对象调用更为优化所以这是很有帮助的。"
366
374
367
375
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:275
368
376
msgid ""
369
377
"Structure which describes an attribute of a type which corresponds to a C "
370
378
"struct member. Its fields are:"
371
- msgstr ""
379
+ msgstr "描述与某个 C 结构体成员相对应的类型的属性的结构体。 它的字段有: "
372
380
373
381
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:281
374
382
msgid ":attr:`name`"
@@ -418,10 +426,12 @@ msgid ""
418
426
"types. When the member is accessed in Python, it will be converted to the "
419
427
"equivalent Python type."
420
428
msgstr ""
429
+ ":attr:`!type` 可以是与各种 C 类型相对应的许多 ``T_`` 宏中的一个。 当在 Python 中访问该成员时,它将被转换为等价的 "
430
+ "Python 类型。"
421
431
422
432
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:303
423
433
msgid "Macro name"
424
- msgstr ""
434
+ msgstr "宏名称 "
425
435
426
436
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:303
427
437
msgid "C type"
0 commit comments