|
1 | 1 | # SOME DESCRIPTIVE TITLE. |
2 | | -# Copyright (C) 2001-2022, Python Software Foundation |
| 2 | +# Copyright (C) 2001-2023, Python Software Foundation |
3 | 3 | # This file is distributed under the same license as the Python package. |
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
5 | 5 | # |
6 | 6 | # Translators: |
7 | | -# Kade For, 2021 |
8 | | -# Alpha Du <[email protected]>, 2021 |
9 | | -# allenjuly7 <[email protected]>, 2021 |
10 | | -# Josh Ouyang <[email protected]>, 2021 |
11 | | -# Freesand Leo <[email protected]>, 2021 |
| 7 | +# Rafael Fontenelle <[email protected]>, 2023 |
12 | 8 | # |
13 | 9 | #, fuzzy |
14 | 10 | msgid "" |
15 | 11 | msgstr "" |
16 | | -"Project-Id-Version: Python 3.10\n" |
| 12 | +"Project-Id-Version: Python 3.11\n" |
17 | 13 | "Report-Msgid-Bugs-To: \n" |
18 | | -"POT-Creation-Date: 2022-11-04 14:28+0000\n" |
19 | | -"PO-Revision-Date: 2021-06-28 00:48+0000\n" |
20 | | -"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n" |
21 | | -"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
| 14 | +"POT-Creation-Date: 2023-12-08 16:33+0000\n" |
| 15 | +"PO-Revision-Date: 2023-05-24 02:08+0000\n" |
| 16 | +"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n" |
| 17 | +"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
22 | 18 | "MIME-Version: 1.0\n" |
23 | 19 | "Content-Type: text/plain; charset=UTF-8\n" |
24 | 20 | "Content-Transfer-Encoding: 8bit\n" |
@@ -67,81 +63,88 @@ msgid "" |
67 | 63 | "The function's docstring and name are retrieved from the code object. " |
68 | 64 | "*__module__* is retrieved from *globals*. The argument defaults, annotations" |
69 | 65 | " and closure are set to ``NULL``. *__qualname__* is set to the same value as" |
70 | | -" the function's name." |
| 66 | +" the code object's :attr:`~codeobject.co_qualname` field." |
71 | 67 | msgstr "" |
72 | | -"从代码对象中提取函数的文档字符串和名称。 *__module__* 会从 *globals* 中提取。 参数 defaults, annotations" |
73 | | -" 和 closure 设为 ``NULL``。 *__qualname__* 设为与函数名称相同的值。" |
74 | 68 |
|
75 | | -#: ../../c-api/function.rst:44 |
| 69 | +#: ../../c-api/function.rst:45 |
76 | 70 | msgid "" |
77 | 71 | "As :c:func:`PyFunction_New`, but also allows setting the function object's " |
78 | 72 | "``__qualname__`` attribute. *qualname* should be a unicode object or " |
79 | 73 | "``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same " |
80 | | -"value as its ``__name__`` attribute." |
| 74 | +"value as the code object's :attr:`~codeobject.co_qualname` field." |
81 | 75 | msgstr "" |
82 | | -"类似 :c:func:`PyFunction_New`,但还允许设置函数对象的 ``__qualname__`` 属性。 *qualname* 应当是 " |
83 | | -"unicode 对象或 ``NULL``;如果是 ``NULL`` 则 ``__qualname__`` 属性设为与其 ``__name__`` " |
84 | | -"属性相同的值。" |
85 | 76 |
|
86 | | -#: ../../c-api/function.rst:54 |
| 77 | +#: ../../c-api/function.rst:55 |
87 | 78 | msgid "Return the code object associated with the function object *op*." |
88 | 79 | msgstr "返回与函数对象 *op* 关联的代码对象。" |
89 | 80 |
|
90 | | -#: ../../c-api/function.rst:59 |
| 81 | +#: ../../c-api/function.rst:60 |
91 | 82 | msgid "" |
92 | 83 | "Return the globals dictionary associated with the function object *op*." |
93 | 84 | msgstr "返回与函数对象*op*相关联的全局字典。" |
94 | 85 |
|
95 | | -#: ../../c-api/function.rst:64 |
| 86 | +#: ../../c-api/function.rst:65 |
96 | 87 | msgid "" |
97 | 88 | "Return a :term:`borrowed reference` to the *__module__* attribute of the " |
98 | 89 | "function object *op*. It can be *NULL*." |
99 | 90 | msgstr "" |
100 | 91 | "向函数对象 *op* 的 *__module__* 属性返回一个 :term:`borrowed reference`。 该值可以为 *NULL*。" |
101 | 92 |
|
102 | | -#: ../../c-api/function.rst:67 |
| 93 | +#: ../../c-api/function.rst:68 |
103 | 94 | msgid "" |
104 | 95 | "This is normally a string containing the module name, but can be set to any " |
105 | 96 | "other object by Python code." |
106 | 97 | msgstr "这通常为一个包含模块名称的字符串,但可以通过 Python 代码设为任何其他对象。" |
107 | 98 |
|
108 | | -#: ../../c-api/function.rst:73 |
| 99 | +#: ../../c-api/function.rst:74 |
109 | 100 | msgid "" |
110 | 101 | "Return the argument default values of the function object *op*. This can be " |
111 | 102 | "a tuple of arguments or ``NULL``." |
112 | 103 | msgstr "返回函数对象 *op* 的参数默认值。 这可以是一个参数元组或 ``NULL``。" |
113 | 104 |
|
114 | | -#: ../../c-api/function.rst:79 |
| 105 | +#: ../../c-api/function.rst:80 |
115 | 106 | msgid "" |
116 | 107 | "Set the argument default values for the function object *op*. *defaults* " |
117 | 108 | "must be ``Py_None`` or a tuple." |
118 | 109 | msgstr "为函数对象 *op* 设置参数默认值。 *defaults* 必须为 ``Py_None`` 或一个元组。" |
119 | 110 |
|
120 | | -#: ../../c-api/function.rst:82 ../../c-api/function.rst:96 |
121 | | -#: ../../c-api/function.rst:110 |
| 111 | +#: ../../c-api/function.rst:83 ../../c-api/function.rst:97 |
| 112 | +#: ../../c-api/function.rst:111 |
122 | 113 | msgid "Raises :exc:`SystemError` and returns ``-1`` on failure." |
123 | 114 | msgstr "失败时引发 :exc:`SystemError` 异常并返回 ``-1`` 。" |
124 | 115 |
|
125 | | -#: ../../c-api/function.rst:87 |
| 116 | +#: ../../c-api/function.rst:88 |
126 | 117 | msgid "" |
127 | 118 | "Return the closure associated with the function object *op*. This can be " |
128 | 119 | "``NULL`` or a tuple of cell objects." |
129 | 120 | msgstr "返回关联到函数对象 *op* 的闭包。 这可以是 ``NULL`` 或 cell 对象的元组。" |
130 | 121 |
|
131 | | -#: ../../c-api/function.rst:93 |
| 122 | +#: ../../c-api/function.rst:94 |
132 | 123 | msgid "" |
133 | 124 | "Set the closure associated with the function object *op*. *closure* must be " |
134 | 125 | "``Py_None`` or a tuple of cell objects." |
135 | 126 | msgstr "设置关联到函数对象 *op* 的闭包。 *closure* 必须为 ``Py_None`` 或 cell 对象的元组。" |
136 | 127 |
|
137 | | -#: ../../c-api/function.rst:101 |
| 128 | +#: ../../c-api/function.rst:102 |
138 | 129 | msgid "" |
139 | 130 | "Return the annotations of the function object *op*. This can be a mutable " |
140 | 131 | "dictionary or ``NULL``." |
141 | 132 | msgstr "返回函数对象 *op* 的标注。 这可以是一个可变字典或 ``NULL``。" |
142 | 133 |
|
143 | | -#: ../../c-api/function.rst:107 |
| 134 | +#: ../../c-api/function.rst:108 |
144 | 135 | msgid "" |
145 | 136 | "Set the annotations for the function object *op*. *annotations* must be a " |
146 | 137 | "dictionary or ``Py_None``." |
147 | 138 | msgstr "设置函数对象 *op* 的标注。 *annotations* 必须为一个字典或 ``Py_None``。" |
| 139 | + |
| 140 | +#: ../../c-api/function.rst:8 |
| 141 | +msgid "object" |
| 142 | +msgstr "object -- 对象" |
| 143 | + |
| 144 | +#: ../../c-api/function.rst:8 |
| 145 | +msgid "function" |
| 146 | +msgstr "function -- 函数" |
| 147 | + |
| 148 | +#: ../../c-api/function.rst:20 |
| 149 | +msgid "MethodType (in module types)" |
| 150 | +msgstr "MethodType (types 模块)" |
0 commit comments