11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2018 , Python Software Foundation
2+ # Copyright (C) 2001-2019 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
6+ # Translators:
7+ # Meng Du <[email protected] >, 20198+ #
69#, fuzzy
710msgid ""
811msgstr ""
912"Project-Id-Version : Python 3.7\n "
1013"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-06-30 05:56+0900\n "
12- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
14+ "POT-Creation-Date : 2019-01-01 10:14+0900\n "
15+ "PO-Revision-Date : 2017-02-16 17:35+0000\n "
16+ "
Last-Translator :
Meng Du <[email protected] >, 2019\n "
1317"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1418"MIME-Version : 1.0\n "
1519"Content-Type : text/plain; charset=UTF-8\n "
@@ -19,35 +23,38 @@ msgstr ""
1923
2024#: ../../c-api/function.rst:6
2125msgid "Function Objects"
22- msgstr ""
26+ msgstr "函数对象 "
2327
2428#: ../../c-api/function.rst:10
2529msgid "There are a few functions specific to Python functions."
26- msgstr ""
30+ msgstr "有一些特定于 Python 函数的函数。 "
2731
2832#: ../../c-api/function.rst:15
2933msgid "The C structure used for functions."
30- msgstr ""
34+ msgstr "用于功能的 C 结构体。 "
3135
3236#: ../../c-api/function.rst:22
3337msgid ""
3438"This is an instance of :c:type:`PyTypeObject` and represents the Python "
3539"function type. It is exposed to Python programmers as "
3640"``types.FunctionType``."
3741msgstr ""
42+ "这是一个 :c:type:`PyTypeObject` 实例并表示 Python 函数类型。 它作为 ``types.FunctionType`` 向 "
43+ "Python 程序员公开。"
3844
3945#: ../../c-api/function.rst:28
4046msgid ""
4147"Return true if *o* is a function object (has type "
4248":c:data:`PyFunction_Type`). The parameter must not be *NULL*."
4349msgstr ""
50+ "如果 *o* 是函数对象(具有类型 :c:data:`PyFunction_Type` ),则返回 true 。 参数不能为 *NULL* 。"
4451
4552#: ../../c-api/function.rst:34
4653msgid ""
4754"Return a new function object associated with the code object *code*. "
4855"*globals* must be a dictionary with the global variables accessible to the "
4956"function."
50- msgstr ""
57+ msgstr "返回与代码对象 *code* 关联的新函数对象。 *globals* 必须是一个字典,该函数可以访问全局变量。 "
5158
5259#: ../../c-api/function.rst:37
5360msgid ""
@@ -56,6 +63,8 @@ msgid ""
5663" and closure are set to *NULL*. *__qualname__* is set to the same value as "
5764"the function's name."
5865msgstr ""
66+ "从代码对象中检索函数的 docstring 和 name 。 *__module__* 从 *globals* 中检索。 参数 defaults 、 "
67+ "annotations 和 closure 设置为*NULL* 。 *__qualname__* 设置为与函数名称相同的值。"
5968
6069#: ../../c-api/function.rst:44
6170msgid ""
@@ -64,10 +73,12 @@ msgid ""
6473"if NULL, the ``__qualname__`` attribute is set to the same value as its "
6574"``__name__`` attribute."
6675msgstr ""
76+ "如 :c:func:`PyFunction_New` ,但也允许设置函数对象的 ``__qualname__`` 属性。 *qualname* 应该是 "
77+ "unicode 对象或 NULL ;如果为 NULL ,则 ``__qualname__`` 属性设置为与 ``__name__`` 属性相同的值。"
6778
6879#: ../../c-api/function.rst:54
6980msgid "Return the code object associated with the function object *op*."
70- msgstr ""
81+ msgstr "返回与函数对象 *op* 关联的代码对象。 "
7182
7283#: ../../c-api/function.rst:59
7384msgid ""
0 commit comments