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

Skip to content

Commit 7bbb666

Browse files
[po] auto sync
1 parent 60f3109 commit 7bbb666

3 files changed

Lines changed: 6649 additions & 6611 deletions

File tree

c-api/long.po

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# Vegetables <[email protected]>, 2019
88
# Freesand Leo <[email protected]>, 2019
9+
# Sean Chao <[email protected]>, 2020
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2020-07-06 03:41+0000\n"
1617
"PO-Revision-Date: 2017-02-16 17:36+0000\n"
17-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
18+
"Last-Translator: Sean Chao <seanchao0804@gmail.com>, 2020\n"
1819
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -37,76 +38,88 @@ msgid ""
3738
"be distinguished from a number. Use :c:func:`PyErr_Occurred` to "
3839
"disambiguate."
3940
msgstr ""
41+
"在出错时,大多数 ``PyLong_As*`` API返回 ``(返回类型)-1`` ,无法与一般的数字区分开来。请使用 "
42+
":c:func:`PyErr_Occurred` 来区分。"
4043

4144
#: ../../c-api/long.rst:18
4245
msgid "This subtype of :c:type:`PyObject` represents a Python integer object."
43-
msgstr ""
46+
msgstr "表示 Python 整数对象的 :c:type:`PyObject` 子类型。"
4447

4548
#: ../../c-api/long.rst:23
4649
msgid ""
4750
"This instance of :c:type:`PyTypeObject` represents the Python integer type. "
4851
"This is the same object as :class:`int` in the Python layer."
4952
msgstr ""
53+
"这个 :c:type:`PyTypeObject` 的实例表示 Python 的整数类型。与Python层中的 :class:`int` 相同。"
5054

5155
#: ../../c-api/long.rst:29
5256
msgid ""
5357
"Return true if its argument is a :c:type:`PyLongObject` or a subtype of "
5458
":c:type:`PyLongObject`."
55-
msgstr ""
59+
msgstr "如果参数是 :c:type:`PyLongObject` 或 :c:type:`PyLongObject` 的子类型,返回 true 。"
5660

5761
#: ../../c-api/long.rst:35
5862
msgid ""
5963
"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
6064
"of :c:type:`PyLongObject`."
61-
msgstr ""
65+
msgstr "如果参数是 :c:type:`PyLongObject` 但不是 :c:type:`PyLongObject` 的子类型,返回 true。"
6266

6367
#: ../../c-api/long.rst:41
6468
msgid ""
6569
"Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure."
66-
msgstr ""
70+
msgstr "由 *v* 返回一个新的 :c:type:`PyLongObject` 对象,失败时返回 ``NULL`` 。"
6771

6872
#: ../../c-api/long.rst:43
6973
msgid ""
7074
"The current implementation keeps an array of integer objects for all "
7175
"integers between ``-5`` and ``256``, when you create an int in that range "
7276
"you actually just get back a reference to the existing object."
7377
msgstr ""
78+
"当前的实现维护了一个整数对象数组,包含 ``-5`` 和 ``256`` 之间的所有整数对象。当你在这个范围内创建一个 int "
79+
"时,实际上得到的是一个对已有对象的引用。"
7480

7581
#: ../../c-api/long.rst:50
7682
msgid ""
7783
"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`,"
7884
" or ``NULL`` on failure."
7985
msgstr ""
86+
"由 C :c:type:`unsigned long` 类型返回一个新的 :c:type:`PyLongObject` 对象,失败时返回 "
87+
"``NULL`` 。"
8088

8189
#: ../../c-api/long.rst:56
8290
msgid ""
8391
"Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or"
8492
" ``NULL`` on failure."
8593
msgstr ""
94+
"从 C :c:type:`Py_ssize_t` 类型返回一个新的 :c:type:`PyLongObject` 对象,如果失败则返回``NULL``。"
8695

8796
#: ../../c-api/long.rst:62
8897
msgid ""
8998
"Return a new :c:type:`PyLongObject` object from a C :c:type:`size_t`, or "
9099
"``NULL`` on failure."
91100
msgstr ""
101+
"从 C :c:type:`size_t` 返回一个新的 :c:type:`PyLongObject` 对象,如果失败则返回``NULL``。"
92102

93103
#: ../../c-api/long.rst:68
94104
msgid ""
95105
"Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or "
96106
"``NULL`` on failure."
97107
msgstr ""
108+
"从 C :c:type:`long long` 返回一个新的 :c:type:`PyLongObject` 对象,失败时返回``NULL``。"
98109

99110
#: ../../c-api/long.rst:74
100111
msgid ""
101112
"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long "
102113
"long`, or ``NULL`` on failure."
103114
msgstr ""
115+
"从 C :c:type:`unsigned long long` 返回一个新的 :c:type:`PyLongObject` "
116+
"对象,失败时返回``NULL``。"
104117

105118
#: ../../c-api/long.rst:80
106119
msgid ""
107120
"Return a new :c:type:`PyLongObject` object from the integer part of *v*, or "
108121
"``NULL`` on failure."
109-
msgstr ""
122+
msgstr "从 *v* 的整数部分返回一个新的 :c:type:`PyLongObject` 对象,如果失败则返回``NULL``。"
110123

111124
#: ../../c-api/long.rst:86
112125
msgid ""
@@ -120,6 +133,11 @@ msgid ""
120133
"and single underscores after a base specifier and between digits are "
121134
"ignored. If there are no digits, :exc:`ValueError` will be raised."
122135
msgstr ""
136+
"根据 *str* 字符串值返回一个新的 :c:type:`PyLongObject` ,*base* 指定基数。如果 *pend* 不是 "
137+
"``NULL`` , */*pend* 将指向 *str* 中表示这个数字部分的后面的第一个字符。如果 *base* 是 ``0`` , *str* "
138+
"将使用 :ref:`integers` 定义来解释;在这种情况下,一个非零的十进制数中的前导零会引发一个 :exc:`ValueError` 。如果 "
139+
"*base* 不是 ``0`` ,它必须在 ``2`` 和 ``36`` "
140+
"之间,包括2和36。基数说明符后以及数字之间的前导空格、单下划线将被忽略。如果没有数字,将引发 :exc:`ValueError`。"
123141

124142
#: ../../c-api/long.rst:99
125143
msgid "Convert a sequence of Unicode digits to a Python integer value."

0 commit comments

Comments
 (0)