88# Josh Ouyang <[email protected] >, 201999# allenjuly7 <[email protected] >, 20191010# Kade For, 2019
11+ # Freesand Leo <[email protected] >, 20191112#
1213#, fuzzy
1314msgid ""
@@ -16,7 +17,7 @@ msgstr ""
1617"Report-Msgid-Bugs-To : \n "
1718"POT-Creation-Date : 2019-10-31 11:48+0000\n "
1819"PO-Revision-Date : 2017-02-16 17:35+0000\n "
19- "Last-Translator : Kade For , 2019\n "
20+ "
Last-Translator :
Freesand Leo <[email protected] > , 2019\n"
2021"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2122"MIME-Version : 1.0\n "
2223"Content-Type : text/plain; charset=UTF-8\n "
@@ -49,7 +50,7 @@ msgstr ""
4950msgid ""
5051"Return true if *o* is a function object (has type "
5152":c:data:`PyFunction_Type`). The parameter must not be ``NULL``."
52- msgstr ""
53+ msgstr "如果 *o* 是函数对象 (类型为 :c:data:`PyFunction_Type`) 则返回真值。 形参必须不为 ``NULL``。 "
5354
5455#: ../../c-api/function.rst:34
5556msgid ""
@@ -65,6 +66,8 @@ msgid ""
6566" and closure are set to ``NULL``. *__qualname__* is set to the same value as"
6667" the function's name."
6768msgstr ""
69+ "从代码对象中提取函数的文档字符串和名称。 *__module__* 会从 *globals* 中提取。 参数 defaults, annotations"
70+ " 和 closure 设为 ``NULL``。 *__qualname__* 设为与函数名称相同的值。"
6871
6972#: ../../c-api/function.rst:44
7073msgid ""
@@ -73,6 +76,9 @@ msgid ""
7376"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
7477"value as its ``__name__`` attribute."
7578msgstr ""
79+ "类似 :c:func:`PyFunction_New`,但还允许设置函数对象的 ``__qualname__`` 属性。 *qualname* 应当是 "
80+ "unicode 对象或 ``NULL``;如果是 ``NULL`` 则 ``__qualname__`` 属性设为与其 ``__name__`` "
81+ "属性相同的值。"
7682
7783#: ../../c-api/function.rst:54
7884msgid "Return the code object associated with the function object *op*."
@@ -95,13 +101,13 @@ msgstr ""
95101msgid ""
96102"Return the argument default values of the function object *op*. This can be "
97103"a tuple of arguments or ``NULL``."
98- msgstr ""
104+ msgstr "返回函数对象 *op* 的参数默认值。 这可以是一个参数元组或 ``NULL``。 "
99105
100106#: ../../c-api/function.rst:77
101107msgid ""
102108"Set the argument default values for the function object *op*. *defaults* "
103109"must be ``Py_None`` or a tuple."
104- msgstr ""
110+ msgstr "为函数对象 *op* 设置参数默认值。 *defaults* 必须为 ``Py_None`` 或一个元组。 "
105111
106112#: ../../c-api/function.rst:80 ../../c-api/function.rst:94
107113#: ../../c-api/function.rst:108
@@ -112,22 +118,22 @@ msgstr "失败时引发 :exc:`SystemError` 异常并返回 ``-1`` 。"
112118msgid ""
113119"Return the closure associated with the function object *op*. This can be "
114120"``NULL`` or a tuple of cell objects."
115- msgstr ""
121+ msgstr "返回关联到函数对象 *op* 的闭包。 这可以是 ``NULL`` 或 cell 对象的元组。 "
116122
117123#: ../../c-api/function.rst:91
118124msgid ""
119125"Set the closure associated with the function object *op*. *closure* must be "
120126"``Py_None`` or a tuple of cell objects."
121- msgstr ""
127+ msgstr "设置关联到函数对象 *op* 的闭包。 *closure* 必须为 ``Py_None`` 或 cell 对象的元组。 "
122128
123129#: ../../c-api/function.rst:99
124130msgid ""
125131"Return the annotations of the function object *op*. This can be a mutable "
126132"dictionary or ``NULL``."
127- msgstr ""
133+ msgstr "返回函数对象 *op* 的标注。 这可以是一个可变字典或 ``NULL``。 "
128134
129135#: ../../c-api/function.rst:105
130136msgid ""
131137"Set the annotations for the function object *op*. *annotations* must be a "
132138"dictionary or ``Py_None``."
133- msgstr ""
139+ msgstr "设置函数对象 *op* 的标注。 *annotations* 必须为一个字典或 ``Py_None``。 "
0 commit comments