Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0696c20

Browse files
[po] auto sync
1 parent 7d5c012 commit 0696c20

40 files changed

Lines changed: 4550 additions & 4693 deletions

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.58%", "updated_at": "2023-12-14T22:55:52Z"}
1+
{"translation": "92.19%", "updated_at": "2023-12-16T01:18:43Z"}

c-api/exceptions.po

Lines changed: 309 additions & 312 deletions
Large diffs are not rendered by default.

c-api/function.po

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.12\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
18+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
2020
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -65,99 +65,103 @@ msgstr "返回与代码对象 *code* 关联的新函数对象。 *globals* 必
6565
#: ../../c-api/function.rst:37
6666
msgid ""
6767
"The function's docstring and name are retrieved from the code object. "
68-
"*__module__* is retrieved from *globals*. The argument defaults, annotations"
69-
" and closure are set to ``NULL``. *__qualname__* is set to the same value as"
70-
" the code object's :attr:`~codeobject.co_qualname` field."
68+
":attr:`~function.__module__` is retrieved from *globals*. The argument "
69+
"defaults, annotations and closure are set to ``NULL``. "
70+
":attr:`~function.__qualname__` is set to the same value as the code object's"
71+
" :attr:`~codeobject.co_qualname` field."
7172
msgstr ""
72-
"函数的文档字符串和名称是从代码对象中提取的。 *__module__* 是从 *globals* 中提取的。 参数 defaults, "
73-
"annotations 和 closure 被设为 ``NULL``。 *__qualname__* 被设为与代码对象的 "
74-
":attr:`~codeobject.co_qualname` 字段相同的值。"
73+
"函数的文档字符串和名称是从代码对象中提取的。 :attr:`~function.__module__` 是从 *globals* 中提取的。 参数 "
74+
"defaults, annotations 和 closure 被设为 ``NULL``。 :attr:`~function.__qualname__`"
75+
" 被设为与代码对象的 :attr:`~codeobject.co_qualname` 字段相同的值。"
7576

76-
#: ../../c-api/function.rst:45
77+
#: ../../c-api/function.rst:46
7778
msgid ""
7879
"As :c:func:`PyFunction_New`, but also allows setting the function object's "
79-
"``__qualname__`` attribute. *qualname* should be a unicode object or "
80-
"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
81-
"value as the code object's :attr:`~codeobject.co_qualname` field."
80+
":attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
81+
"object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
82+
"to the same value as the code object's :attr:`~codeobject.co_qualname` "
83+
"field."
8284
msgstr ""
83-
"类似 :c:func:`PyFunction_New`,但还允许设置函数对象的 ``__qualname__`` 属性。 *qualname* "
84-
"应当是一个 unicode 对象或为 ``NULL``;如为 ``NULL``,则 ``__qualname__`` 属性会被设为与代码对象的 "
85-
":attr:`~codeobject.co_qualname` 字段相同的值。"
85+
"类似 :c:func:`PyFunction_New`,但还允许设置函数对象的 :attr:`~function.__qualname__` 属性。 "
86+
"*qualname* 应当是一个 unicode 对象或为 ``NULL``;如为 ``NULL``,则 :attr:`!__qualname__` "
87+
"属性会被设为与代码对象的 :attr:`~codeobject.co_qualname` 字段相同的值。"
8688

87-
#: ../../c-api/function.rst:55
89+
#: ../../c-api/function.rst:57
8890
msgid "Return the code object associated with the function object *op*."
8991
msgstr "返回与函数对象 *op* 关联的代码对象。"
9092

91-
#: ../../c-api/function.rst:60
93+
#: ../../c-api/function.rst:62
9294
msgid ""
9395
"Return the globals dictionary associated with the function object *op*."
9496
msgstr "返回与函数对象*op*相关联的全局字典。"
9597

96-
#: ../../c-api/function.rst:65
98+
#: ../../c-api/function.rst:67
9799
msgid ""
98-
"Return a :term:`borrowed reference` to the *__module__* attribute of the "
99-
"function object *op*. It can be *NULL*."
100+
"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
101+
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be"
102+
" *NULL*."
100103
msgstr ""
101-
"向函数对象 *op* 的 *__module__* 属性返回一个 :term:`borrowed reference`。 该值可以为 *NULL*。"
104+
"向 :ref:`函数对象 <user-defined-funcs>` *op* 的 :attr:`~function.__module__` "
105+
"属性返回一个 :term:`borrowed reference`。 该值可以为 *NULL*。"
102106

103-
#: ../../c-api/function.rst:68
107+
#: ../../c-api/function.rst:71
104108
msgid ""
105-
"This is normally a string containing the module name, but can be set to any "
106-
"other object by Python code."
107-
msgstr "这通常为一个包含模块名称的字符串,但可以通过 Python 代码设为任何其他对象。"
109+
"This is normally a :class:`string <str>` containing the module name, but can"
110+
" be set to any other object by Python code."
111+
msgstr "这通常为一个包含模块名称的 :class:`字符串 <str>`,但可以通过 Python 代码设为任何其他对象。"
108112

109-
#: ../../c-api/function.rst:74
113+
#: ../../c-api/function.rst:77
110114
msgid ""
111115
"Return the argument default values of the function object *op*. This can be "
112116
"a tuple of arguments or ``NULL``."
113117
msgstr "返回函数对象 *op* 的参数默认值。 这可以是一个参数元组或 ``NULL``。"
114118

115-
#: ../../c-api/function.rst:80
119+
#: ../../c-api/function.rst:83
116120
msgid ""
117121
"Set the argument default values for the function object *op*. *defaults* "
118122
"must be ``Py_None`` or a tuple."
119123
msgstr "为函数对象 *op* 设置参数默认值。 *defaults* 必须为 ``Py_None`` 或一个元组。"
120124

121-
#: ../../c-api/function.rst:83 ../../c-api/function.rst:106
122-
#: ../../c-api/function.rst:120
125+
#: ../../c-api/function.rst:86 ../../c-api/function.rst:109
126+
#: ../../c-api/function.rst:123
123127
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
124128
msgstr "失败时引发 :exc:`SystemError` 异常并返回 ``-1`` 。"
125129

126-
#: ../../c-api/function.rst:88
130+
#: ../../c-api/function.rst:91
127131
msgid "Set the vectorcall field of a given function object *func*."
128132
msgstr "设置给定函数对象 *func* 的 vectorcall 字段。"
129133

130-
#: ../../c-api/function.rst:90
134+
#: ../../c-api/function.rst:93
131135
msgid ""
132136
"Warning: extensions using this API must preserve the behavior of the "
133137
"unaltered (default) vectorcall function!"
134138
msgstr "警告:使用此 API 的扩展必须保留未修改的(默认) vectorcall 函数的行为!"
135139

136-
#: ../../c-api/function.rst:97
140+
#: ../../c-api/function.rst:100
137141
msgid ""
138142
"Return the closure associated with the function object *op*. This can be "
139143
"``NULL`` or a tuple of cell objects."
140144
msgstr "返回关联到函数对象 *op* 的闭包。 这可以是 ``NULL`` 或 cell 对象的元组。"
141145

142-
#: ../../c-api/function.rst:103
146+
#: ../../c-api/function.rst:106
143147
msgid ""
144148
"Set the closure associated with the function object *op*. *closure* must be "
145149
"``Py_None`` or a tuple of cell objects."
146150
msgstr "设置关联到函数对象 *op* 的闭包。 *closure* 必须为 ``Py_None`` 或 cell 对象的元组。"
147151

148-
#: ../../c-api/function.rst:111
152+
#: ../../c-api/function.rst:114
149153
msgid ""
150154
"Return the annotations of the function object *op*. This can be a mutable "
151155
"dictionary or ``NULL``."
152156
msgstr "返回函数对象 *op* 的标注。 这可以是一个可变字典或 ``NULL``。"
153157

154-
#: ../../c-api/function.rst:117
158+
#: ../../c-api/function.rst:120
155159
msgid ""
156160
"Set the annotations for the function object *op*. *annotations* must be a "
157161
"dictionary or ``Py_None``."
158162
msgstr "设置函数对象 *op* 的标注。 *annotations* 必须为一个字典或 ``Py_None``。"
159163

160-
#: ../../c-api/function.rst:125
164+
#: ../../c-api/function.rst:128
161165
msgid ""
162166
"Register *callback* as a function watcher for the current interpreter. "
163167
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
@@ -167,7 +171,7 @@ msgstr ""
167171
"注册 *callback* 作为当前解释器的函数监视器。 返回一个可被传给 :c:func:`PyFunction_ClearWatcher` 的 "
168172
"ID。 如果出现错误(比如没有足够的可用监视器 ID),则返回 ``-1`` 并设置一个异常。"
169173

170-
#: ../../c-api/function.rst:135
174+
#: ../../c-api/function.rst:138
171175
msgid ""
172176
"Clear watcher identified by *watcher_id* previously returned from "
173177
":c:func:`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on"
@@ -178,7 +182,7 @@ msgstr ""
178182
":c:func:`PyFunction_AddWatcher` 返回的由 *watcher_id* 所标识的监视器。 成功时返回 "
179183
"``0``,或者出错时(比如当给定的 *watcher_id* 未被注册)返回 ``-1`` 并设置一个异常。"
180184

181-
#: ../../c-api/function.rst:145
185+
#: ../../c-api/function.rst:148
182186
msgid ""
183187
"Enumeration of possible function watcher events: - "
184188
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
@@ -190,11 +194,11 @@ msgstr ""
190194
"``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
191195
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
192196

193-
#: ../../c-api/function.rst:157
197+
#: ../../c-api/function.rst:160
194198
msgid "Type of a function watcher callback function."
195199
msgstr "函数监视器回调函数的类型。"
196200

197-
#: ../../c-api/function.rst:159
201+
#: ../../c-api/function.rst:162
198202
msgid ""
199203
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
200204
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a "
@@ -205,13 +209,13 @@ msgstr ""
205209
"*new_value* 将为 ``NULL``。 在其他情况下,*new_value* 将为被修改的属性持有一个指向要保存在 *func* 中的新值的 "
206210
":term:`borrowed reference`。"
207211

208-
#: ../../c-api/function.rst:164
212+
#: ../../c-api/function.rst:167
209213
msgid ""
210214
"The callback may inspect but must not modify *func*; doing so could have "
211215
"unpredictable effects, including infinite recursion."
212216
msgstr "该回调可以检查但不能修改 *func*; 这样做可能具有不可预知的影响,包括无限递归。"
213217

214-
#: ../../c-api/function.rst:167
218+
#: ../../c-api/function.rst:170
215219
msgid ""
216220
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
217221
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -226,7 +230,7 @@ msgstr ""
226230
"在其他情况下,该回调会在对 *func* 进行修改之前被发起调用,这样就可以检查 *func* 之前的状态。 如有可能函数对象的创建允许被运行时优化掉。"
227231
" 在此情况下将不发出任何事件。 虽然根据不同的优化决定这会产生可被观察到的运行时行为变化,但是它不会改变被运行的 Python 代码的语义。"
228232

229-
#: ../../c-api/function.rst:176
233+
#: ../../c-api/function.rst:179
230234
msgid ""
231235
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
232236
"callback to the about-to-be-destroyed function will resurrect it, preventing"
@@ -237,7 +241,7 @@ msgstr ""
237241
"``PyFunction_EVENT_DESTROY``,则在回调中接受一个即将销毁的函数的引用将使其重生,并阻止其在此时被释放。 "
238242
"当重生的对象以后再被销毁时,任何在当时已激活的监视器回调将再次被调用。"
239243

240-
#: ../../c-api/function.rst:181
244+
#: ../../c-api/function.rst:184
241245
msgid ""
242246
"If the callback sets an exception, it must return ``-1``; this exception "
243247
"will be printed as an unraisable exception using "
@@ -246,7 +250,7 @@ msgstr ""
246250
"如果该回调设置了一个异常,则它必须返回 ``-1``;此异常将作为不可引发的异常使用 :c:func:`PyErr_WriteUnraisable` "
247251
"打印出来。 在其他情况下它应当返回 ``0``。"
248252

249-
#: ../../c-api/function.rst:185
253+
#: ../../c-api/function.rst:188
250254
msgid ""
251255
"There may already be a pending exception set on entry to the callback. In "
252256
"this case, the callback should return ``0`` with the same exception still "

0 commit comments

Comments
 (0)