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

Skip to content

Commit 810e548

Browse files
[po] auto sync
1 parent 602966a commit 810e548

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

c-api/number.po

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66
# Translators:
77
# 心韵 方 <[email protected]>, 2019
8-
# Freesand Leo <[email protected]>, 2019
98
# Azuk 443 <[email protected]>, 2020
9+
# Freesand Leo <[email protected]>, 2020
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
1717
"PO-Revision-Date: 2017-02-16 17:37+0000\n"
18-
"Last-Translator: Azuk 443 <[email protected]>, 2020\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -262,38 +262,45 @@ msgid ""
262262
"failure. The operation is done *in-place* when *o1* supports it. This is "
263263
"the equivalent of the Python statement ``o1 &= o2``."
264264
msgstr ""
265+
"成功时返回 *o1* 和 *o2* \"按位与\" 的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价与"
266+
" Python 语句 ``o1 &= o2``。"
265267

266268
#: ../../c-api/number.rst:226
267269
msgid ""
268270
"Returns the \"bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL``"
269271
" on failure. The operation is done *in-place* when *o1* supports it. This "
270272
"is the equivalent of the Python statement ``o1 ^= o2``."
271273
msgstr ""
274+
"成功时返回 *o1* 和 *o2* \"按位异或的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价与 "
275+
"Python 语句 ``o1 ^= o2``。"
272276

273277
#: ../../c-api/number.rst:233
274278
msgid ""
275279
"Returns the \"bitwise or\" of *o1* and *o2* on success, or ``NULL`` on "
276280
"failure. The operation is done *in-place* when *o1* supports it. This is "
277281
"the equivalent of the Python statement ``o1 |= o2``."
278282
msgstr ""
283+
"成功时返回 *o1* 和 *o2* \"按位或\" 的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价于"
284+
" Python 语句 ``o1 |= o2``。"
279285

280286
#: ../../c-api/number.rst:242
281287
msgid ""
282288
"Returns the *o* converted to an integer object on success, or ``NULL`` on "
283289
"failure. This is the equivalent of the Python expression ``int(o)``."
284-
msgstr ""
290+
msgstr "成功时返回 *o* 转换为整数对象后的结果,失败时返回 ``NULL``。 等价于 Python 表达式 ``int(o)``。"
285291

286292
#: ../../c-api/number.rst:250
287293
msgid ""
288294
"Returns the *o* converted to a float object on success, or ``NULL`` on "
289295
"failure. This is the equivalent of the Python expression ``float(o)``."
290-
msgstr ""
296+
msgstr "成功时返回 *o* 转换为浮点对象后的结果,失败时返回 ``NULL``。 等价于 Python 表达式 ``float(o)``。"
291297

292298
#: ../../c-api/number.rst:256
293299
msgid ""
294300
"Returns the *o* converted to a Python int on success or ``NULL`` with a "
295301
":exc:`TypeError` exception raised on failure."
296302
msgstr ""
303+
"成功时返回 *o* 转换为 Python int 类型后的结果,失败时返回 ``NULL`` 并引发 :exc:`TypeError` 异常。"
297304

298305
#: ../../c-api/number.rst:262
299306
msgid ""
@@ -323,6 +330,9 @@ msgid ""
323330
"exception is cleared and the value is clipped to ``PY_SSIZE_T_MIN`` for a "
324331
"negative integer or ``PY_SSIZE_T_MAX`` for a positive integer."
325332
msgstr ""
333+
"如果 *o* 可以被转换为 Python int 类型但尝试转换为 Py_ssize_t 值则会引发 :exc:`OverflowError`,这时 "
334+
"*exc* 参数为将被引发的异常类型 (通常是 :exc:`IndexError` 或 :exc:`OverflowError`)。 如果 *exc* "
335+
"为 ``NULL``,则异常会被清除并且值会被裁剪为负整数 ``PY_SSIZE_T_MIN`` 或正整数 ``PY_SSIZE_T_MAX``。"
326336

327337
#: ../../c-api/number.rst:284
328338
msgid ""

library/logging.config.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,11 @@ msgid ""
729729
" ``ext://`` will be stripped off and the remainder of the value processed "
730730
"using normal import mechanisms."
731731
msgstr ""
732+
"有时一个配置需要引用配置以外的对象,例如 ``sys.stderr``。 如果配置字典是使用 Python "
733+
"代码构造的,这会很直观,但是当配置是通过文本文件(例如 JSON, YAML)提供的时候就会引发问题。 在一个文本文件中,没有将 "
734+
"``sys.stderr`` 与字符串字面值 ``'sys.stderr'`` 区分开来的标准方式。 "
735+
"为了实现这种区分,配置系统会在字符串值中查找规定的特殊前缀并对其做特殊处理。 例如,如果在配置中将字符串字面值 "
736+
"``'ext://sys.stderr'`` 作为一个值来提供,则 ``ext://`` 将被去除而该值的剩余部分将使用正常导入机制来处理。"
732737

733738
#: ../../library/logging.config.rst:514
734739
msgid ""

whatsnew/3.8.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,9 @@ msgid ""
908908
" from :class:`concurrent.futures.CancelledError`. (Contributed by Yury "
909909
"Selivanov in :issue:`32528`.)"
910910
msgstr ""
911+
"异常 :class:`asyncio.CancelledError` 现在继承自 :class:`BaseException` 而不是 "
912+
":class:`Exception` 并且不再继承自 :class:`concurrent.futures.CancelledError`。 (由 "
913+
"Yury Selivanov 在 :issue:`32528` 中贡献。)"
911914

912915
#: ../../whatsnew/3.8.rst:653
913916
msgid ""

0 commit comments

Comments
 (0)