8000 [po] auto sync · python/python-docs-zh-cn@9db9802 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9db9802

Browse files
[po] auto sync
1 parent f5efac1 commit 9db9802

36 files changed

+1763
-2353
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.06%", "updated_at": "2025-02-20T07:55:33Z"}
1+
{"translation": "80.88%", "updated_at": "2025-02-21T14:55:47Z"}

c-api/dict.po

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2024, Python Software Foundation
2+
# Copyright (C) 2001-2025, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -16,7 +16,7 @@ msgid ""
1616
msgstr ""
1717
"Project-Id-Version: Python 3.13\n"
1818
"Report-Msgid-Bugs-To: \n"
19-
"POT-Creation-Date: 2024-10-04 14:17+0000\n"
19+
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
2020
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
2121
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2222
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -211,12 +211,10 @@ msgstr ""
211211

212212
#: ../../c-api/dict.rst:159
213213
msgid ""
214-
"Similar than :c:func:`PyDict_GetItemRef`, but *key* is specified as a "
214+
"Similar to :c:func:`PyDict_GetItemRef`, but *key* is specified as a "
215215
":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
216216
":c:expr:`PyObject*`."
217217
msgstr ""
218-
"这与 :c:func:`PyDict_GetItemRef` 类似,但 *key* 是以一个 :c:expr:`const char*` UTF-8 "
219-
"编码的字节串形式指定的,而不是 :c:expr:`PyObject*`。"
220218

221219
#: ../../c-api/dict.rst:168
222220
msgid ""
@@ -279,9 +277,9 @@ msgstr "如果不存在该键,则在 *result* 不为 ``NULL`` 时将 *\\*resul
279277

280278
#: ../../c-api/dict.rst:209
281279
msgid ""
282-
"This is similar to :meth:`dict.pop`, but without the default value and not "
283-
"raising :exc:`KeyError` if the key missing."
284-
msgstr "这类似于 :meth:`dict.pop`,但没有默认值并且当键不存在时不会引发 :exc:`KeyError`。"
280+
"Similar to :meth:`dict.pop`, but without the default value and not raising "
281+
":exc:`KeyError` if the key missing."
282+
msgstr ""
285283

286284
#: ../../c-api/dict.rst:217
287285
msgid ""

c-api/function.po

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.13\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2025-01-17 14:16+0000\n"
18+
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
2020
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -183,22 +183,34 @@ msgstr ""
183183
"``0``,或者出错时(比如当给定的 *watcher_id* 未被注册)返回 ``-1`` 并设置一个异常。"
184184

185185
#: ../../c-api/function.rst:148
186-
msgid ""
187-
"Enumeration of possible function watcher events: - "
188-
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
189-
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
190-
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
186+
msgid "Enumeration of possible function watcher events:"
187+
msgstr ""
188+
189+
#: ../../c-api/function.rst:150
190+
msgid "``PyFunction_EVENT_CREATE``"
191+
msgstr ""
192+
193+
#: ../../c-api/function.rst:151
194+
msgid "``PyFunction_EVENT_DESTROY``"
195+
msgstr ""
196+
197+
#: ../../c-api/function.rst:152
198+
msgid "``PyFunction_EVENT_MODIFY_CODE``"
199+
msgstr ""
200+
201+
#: ../../c-api/function.rst:153
202+
msgid "``PyFunction_EVENT_MODIFY_DEFAULTS``"
203+
msgstr ""
204+
205+
#: ../../c-api/function.rst:154
206+
msgid "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
191207
msgstr ""
192-
"由以下可能的函数监视器事件组成的枚举: - ``PyFunction_EVENT_CREATE`` - "
193-
"``PyFunction_EVENT_DESTROY`` - ``PyFunction_EVENT_MODIFY_CODE`` - "
194-
"``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
195-
"``PyFunction_EVENT_MO F438 DIFY_KWDEFAULTS``"
196208

197-
#: ../../c-api/function.rst:160
209+
#: ../../c-api/function.rst:161
198210
msgid "Type of a function watcher callback function."
199211
msgstr "函数监视器回调函数的类型。"
200212

201-
#: ../../c-api/function.rst:162
213+
#: ../../c-api/function.rst:163
202214
msgid ""
203215
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
204216
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a "
@@ -209,13 +221,13 @@ msgstr ""
209221
"*new_value* 将为 ``NULL``。 在其他情况下,*new_value* 将为被修改的属性持有一个指向要保存在 *func* 中的新值的 "
210222
":term:`borrowed reference`。"
211223

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

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

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

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

253-
#: ../../c-api/function.rst:188
265+
#: ../../c-api/function.rst:189
254266
msgid ""
255267
"There may already be a pending exception set on entry to the callback. In "
256268
"this case, the callback should return ``0`` with the same exception still "

0 commit comments

Comments
 (0)
0