@@ -309,6 +309,8 @@ msgid ""
309309"*tp_call* or vectorcall. In order to do as litle conversion as possible, "
310310"pick one that best fits the format of data you have available."
311311msgstr ""
312+ "有多个函数可被用来调用 Python 对象。 各个函数会将其参数转换为被调用对象所支持的惯例 – 可以是 *tp_call* 或 vectorcall。"
313+ " 为了尽可能少地进行转换,请选择一个适合你所拥有的数据格式的函数。"
312314
313315#: ../../c-api/call.rst:191
314316msgid ""
@@ -443,12 +445,13 @@ msgid ""
443445"Call a callable Python object *callable*, with arguments given by the tuple "
444446"*args*, and named arguments given by the dictionary *kwargs*."
445447msgstr ""
448+ "调用一个可调用的 Python 对象 *callable*,附带由元组 *args* 所给出的参数,以及由字典 *kwargs* 所给出的关键字参数。"
446449
447450#: ../../c-api/call.rst:230
448451msgid ""
449452"*args* must not be *NULL*; use an empty tuple if no arguments are needed. If"
450453" no named arguments are needed, *kwargs* can be *NULL*."
451- msgstr ""
454+ msgstr "*args* 必须不为 *NULL*;如果不想要参数请使用一个空元组。 如果不想要关键字参数,则 *kwargs* 可以为 *NULL*。 "
452455
453456#: ../../c-api/call.rst:233 ../../c-api/call.rst:245 ../../c-api/call.rst:256
454457#: ../../c-api/call.rst:269 ../../c-api/call.rst:281 ../../c-api/call.rst:301
@@ -469,19 +472,21 @@ msgstr "这等价于 Python 表达式 ``callable(*args, **kwargs)``。"
469472msgid ""
470473"Call a callable Python object *callable* without any arguments. It is the "
471474"most efficient way to call a callable Python object without any argument."
472- msgstr ""
475+ msgstr "调用一个可调用的 Python 对象 *callable* 并不附带任何参数。 这是不带参数调用 Python 可调用对象的最有效方式。 "
473476
474477#: ../../c-api/call.rst:253
475478msgid ""
476479"Call a callable Python object *callable* with exactly 1 positional argument "
477480"*arg* and no keyword arguments."
478- msgstr ""
481+ msgstr "调用一个可调用的 Python 对象 *callable* 并附带恰好 1 个位置参数 *arg* 而没有关键字参数。 "
479482
480483#: ../../c-api/call.rst:266
481484msgid ""
482485"Call a callable Python object *callable*, with arguments given by the tuple "
483486"*args*. If no arguments are needed, then *args* can be *NULL*."
484487msgstr ""
488+ "调用一个可调用的 Python 对象 *callable*,附带由元组 *args* 所给出的参数。 如果不想要传入参数,则 *args* 可以为 "
489+ "*NULL*。"
485490
486491#: ../../c-api/call.rst:272 ../../c-api/call.rst:284
487492msgid "This is the equivalent of the Python expression: ``callable(*args)``."
@@ -494,12 +499,16 @@ msgid ""
494499"style format string. The format can be *NULL*, indicating that no arguments"
495500" are provided."
496501msgstr ""
502+ "调用一个可调用的 Python 对象 *callable*,附带可变数量的 C 参数。 这些 C 参数使用 "
503+ ":c:func:`Py_BuildValue` 风格的格式字符串来描述。 format 可以为 *NULL*,表示没有提供任何参数。"
497504
498505#: ../../c-api/call.rst:286
499506msgid ""
500507"Note that if you only pass :c:type:`PyObject *` args, "
501508":c:func:`PyObject_CallFunctionObjArgs` is a faster alternative."
502509msgstr ""
510+ "请注意如果你只传入 :c:type:`PyObject *` 参数,则 :c:func:`PyObject_CallFunctionObjArgs` "
511+ "是更快速的选择。"
503512
504513#: ../../c-api/call.rst:289
505514msgid "The type of *format* was changed from ``char *``."
@@ -511,6 +520,8 @@ msgid ""
511520"arguments. The C arguments are described by a :c:func:`Py_BuildValue` "
512521"format string that should produce a tuple."
513522msgstr ""
523+ "调用 *obj* 对象中名为 *name* 的方法并附带可变数量的 C 参数。 这些 C 参数由 :c:func:`Py_BuildValue` "
524+ "格式字符串来描述并应当生成一个元组。"
514525
515526#: ../../c-api/call.rst:299
516527msgid "The format can be *NULL*, indicating that no arguments are provided."
@@ -527,6 +538,8 @@ msgid ""
527538"Note that if you only pass :c:type:`PyObject *` args, "
528539":c:func:`PyObject_CallMethodObjArgs` is a faster alternative."
529540msgstr ""
541+ "请注意如果你只传入 :c:type:`PyObject *` 参数,则 :c:func:`PyObject_CallMethodObjArgs` "
542+ "是更快速的选择。"
530543
531544#: ../../c-api/call.rst:310
532545msgid "The types of *name* and *format* were changed from ``char *``."
@@ -538,6 +551,8 @@ msgid ""
538551":c:type:`PyObject *` arguments. The arguments are provided as a variable "
539552"number of parameters followed by *NULL*."
540553msgstr ""
554+ "调用一个可调用的 Python 对象 *callable*,附带可变数量的 :c:type:`PyObject *` 参数。 这些参数是以 *NULL*"
555+ " 之后可变数量的形参的形式提供的。"
541556
542557#: ../../c-api/call.rst:323
543558msgid ""
@@ -552,19 +567,23 @@ msgid ""
552567"number of :c:type:`PyObject *` arguments. The arguments are provided as a "
553568"variable number of parameters followed by *NULL*."
554569msgstr ""
570+ "调用 Python 对象 *obj* 中的一个方法,其中方法名称由 *name* 中的 Python 字符串对象给出。 它将附带可变数量的 "
571+ ":c:type:`PyObject *` 参数被调用。 这些参数是以 *NULL* 之后可变数量的形参的形式提供的。"
555572
556573#: ../../c-api/call.rst:340
557574msgid ""
558575"Call a method of the Python object *obj* without arguments, where the name "
559576"of the method is given as a Python string object in *name*."
560- msgstr ""
577+ msgstr "调用 Python 对象 *obj* 中的一个方法并不附带任何参数,其中方法名称由 *name* 中的 Python 字符串对象给出。 "
561578
562579#: ../../c-api/call.rst:353
563580msgid ""
564581"Call a method of the Python object *obj* with a single positional argument "
565582"*arg*, where the name of the method is given as a Python string object in "
566583"*name*."
567584msgstr ""
585+ "调用Call a method of the Python 对象 *obj* 中的一个方法并附带单个位置参数 *arg*,其中方法名称由 *name* "
586+ "中的 Python 字符串对象给出。"
568587
569588#: ../../c-api/call.rst:367
570589msgid ""
0 commit comments