44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Freesand Leo <[email protected] >, 20208798# Azuk 443 <[email protected] >, 20209+ # Freesand Leo <[email protected] >, 20201010#
1111#, fuzzy
1212msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515"Report-Msgid-Bugs-To : \n "
1616"POT-Creation-Date : 2020-02-09 12:40+0000\n "
1717"PO-Revision-Date : 2020-05-30 11:50+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 "
@@ -261,38 +261,45 @@ msgid ""
261261"failure. The operation is done *in-place* when *o1* supports it. This is "
262262"the equivalent of the Python statement ``o1 &= o2``."
263263msgstr ""
264+ "成功时返回 *o1* 和 *o2* \" 按位与\" 的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价与"
265+ " Python 语句 ``o1 &= o2``。"
264266
265267#: ../../c-api/number.rst:226
266268msgid ""
267269"Returns the \" bitwise exclusive or\" of *o1* by *o2* on success, or ``NULL``"
268270" on failure. The operation is done *in-place* when *o1* supports it. This "
269271"is the equivalent of the Python statement ``o1 ^= o2``."
270272msgstr ""
273+ "成功时返回 *o1* 和 *o2* \" 按位异或的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价与 "
274+ "Python 语句 ``o1 ^= o2``。"
271275
272276#: ../../c-api/number.rst:233
273277msgid ""
274278"Returns the \" bitwise or\" of *o1* and *o2* on success, or ``NULL`` on "
275279"failure. The operation is done *in-place* when *o1* supports it. This is "
276280"the equivalent of the Python statement ``o1 |= o2``."
277281msgstr ""
282+ "成功时返回 *o1* 和 *o2* \" 按位或\" 的结果,失败时返回 ``NULL``。 在 *o1* 支持的前提下该操作将 *原地* 执行。 等价于"
283+ " Python 语句 ``o1 |= o2``。"
278284
279285#: ../../c-api/number.rst:242
280286msgid ""
281287"Returns the *o* converted to an integer object on success, or ``NULL`` on "
282288"failure. This is the equivalent of the Python expression ``int(o)``."
283- msgstr ""
289+ msgstr "成功时返回 *o* 换为整数对象或的结果,失败时返回 ``NULL``。 等价于 Python 表达式 ``int(o)``。 "
284290
285291#: ../../c-api/number.rst:250
286292msgid ""
287293"Returns the *o* converted to a float object on success, or ``NULL`` on "
288294"failure. This is the equivalent of the Python expression ``float(o)``."
289- msgstr ""
295+ msgstr "成功时返回 *o* 转换为浮点对象后的结果,失败时返回 ``NULL``。 等价于 Python 表达式 ``float(o)``。 "
290296
291297#: ../../c-api/number.rst:256
292298msgid ""
293299"Returns the *o* converted to a Python int on success or ``NULL`` with a "
294300":exc:`TypeError` exception raised on failure."
295301msgstr ""
302+ "成功时返回 *o* 转换为 Python int 类型后的结果,失败时返回 ``NULL`` 并引发 :exc:`TypeError` 异常。"
296303
297304#: ../../c-api/number.rst:262
298305msgid ""
@@ -322,6 +329,9 @@ msgid ""
322329"exception is cleared and the value is clipped to ``PY_SSIZE_T_MIN`` for a "
323330"negative integer or ``PY_SSIZE_T_MAX`` for a positive integer."
324331msgstr ""
332+ "如果 *o* 可以被转换为 Python int 类型但尝试转换为 Py_ssize_t 值则会引发 :exc:`OverflowError`,这时 "
333+ "*exc* 参数为将被引发的异常类型 (通常是 :exc:`IndexError` 或 :exc:`OverflowError`)。 如果 *exc* "
334+ "为 ``NULL``,则异常会被清除并且值会被剪切到负整数 ``PY_SSIZE_T_MIN`` 或正整数 ``PY_SSIZE_T_MAX``。"
325335
326336#: ../../c-api/number.rst:284
327337msgid ""
0 commit comments