|
8 | 8 | msgstr ""
|
9 | 9 | "Project-Id-Version: Python 3.6\n"
|
10 | 10 | "Report-Msgid-Bugs-To: \n"
|
11 |
| -"POT-Creation-Date: 2017-04-02 22:11+0200\n" |
| 11 | +"POT-Creation-Date: 2017-05-27 19:40+0200\n" |
12 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 | 14 | " Language-Team: LANGUAGE <[email protected]>\n"
|
@@ -103,178 +103,176 @@ msgid ""
|
103 | 103 | "Return a new :c:type:`PyLongObject` based on the string value in *str*, "
|
104 | 104 | "which is interpreted according to the radix in *base*. If *pend* is non-"
|
105 | 105 | "*NULL*, *\\*pend* will point to the first character in *str* which follows "
|
106 |
| -"the representation of the number. If *base* is ``0``, the radix will be " |
107 |
| -"determined based on the leading characters of *str*: if *str* starts with " |
108 |
| -"``'0x'`` or ``'0X'``, radix 16 will be used; if *str* starts with ``'0o'`` " |
109 |
| -"or ``'0O'``, radix 8 will be used; if *str* starts with ``'0b'`` or " |
110 |
| -"``'0B'``, radix 2 will be used; otherwise radix 10 will be used. If *base* " |
111 |
| -"is not ``0``, it must be between ``2`` and ``36``, inclusive. Leading " |
112 |
| -"spaces are ignored. If there are no digits, :exc:`ValueError` will be " |
113 |
| -"raised." |
| 106 | +"the representation of the number. If *base* is ``0``, *str* is interpreted " |
| 107 | +"using the :ref:`integers` definition; in this case, leading zeros in a non-" |
| 108 | +"zero decimal number raises a :exc:`ValueError`. If *base* is not ``0``, it " |
| 109 | +"must be between ``2`` and ``36``, inclusive. Leading spaces and single " |
| 110 | +"underscores after a base specifier and between digits are ignored. If there " |
| 111 | +"are no digits, :exc:`ValueError` will be raised." |
114 | 112 | msgstr ""
|
115 | 113 |
|
116 |
| -#: ../Doc/c-api/long.rst:99 |
| 114 | +#: ../Doc/c-api/long.rst:98 |
117 | 115 | msgid ""
|
118 | 116 | "Convert a sequence of Unicode digits to a Python integer value. The Unicode "
|
119 | 117 | "string is first encoded to a byte string using :c:func:"
|
120 | 118 | "`PyUnicode_EncodeDecimal` and then converted using :c:func:"
|
121 | 119 | "`PyLong_FromString`."
|
122 | 120 | msgstr ""
|
123 | 121 |
|
124 |
| -#: ../Doc/c-api/long.rst:105 |
| 122 | +#: ../Doc/c-api/long.rst:104 |
125 | 123 | msgid ""
|
126 | 124 | "Deprecated since version 3.3, will be removed in version 4.0: Part of the "
|
127 | 125 | "old-style Py_UNICODE API; please migrate to using PyLong_FromUnicodeObject()."
|
128 | 126 | msgstr ""
|
129 | 127 |
|
130 |
| -#: ../Doc/c-api/long.rst:105 |
| 128 | +#: ../Doc/c-api/long.rst:104 |
131 | 129 | msgid ""
|
132 | 130 | "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:"
|
133 | 131 | "func:`PyLong_FromUnicodeObject`."
|
134 | 132 | msgstr ""
|
135 | 133 |
|
136 |
| -#: ../Doc/c-api/long.rst:110 |
| 134 | +#: ../Doc/c-api/long.rst:109 |
137 | 135 | msgid ""
|
138 | 136 | "Convert a sequence of Unicode digits in the string *u* to a Python integer "
|
139 | 137 | "value. The Unicode string is first encoded to a byte string using :c:func:"
|
140 | 138 | "`PyUnicode_EncodeDecimal` and then converted using :c:func:"
|
141 | 139 | "`PyLong_FromString`."
|
142 | 140 | msgstr ""
|
143 | 141 |
|
144 |
| -#: ../Doc/c-api/long.rst:120 |
| 142 | +#: ../Doc/c-api/long.rst:119 |
145 | 143 | msgid ""
|
146 | 144 | "Create a Python integer from the pointer *p*. The pointer value can be "
|
147 | 145 | "retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`."
|
148 | 146 | msgstr ""
|
149 | 147 |
|
150 |
| -#: ../Doc/c-api/long.rst:131 ../Doc/c-api/long.rst:141 |
| 148 | +#: ../Doc/c-api/long.rst:130 ../Doc/c-api/long.rst:140 |
151 | 149 | msgid ""
|
152 | 150 | "Return a C :c:type:`long` representation of *obj*. If *obj* is not an "
|
153 | 151 | "instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method "
|
154 | 152 | "(if present) to convert it to a :c:type:`PyLongObject`."
|
155 | 153 | msgstr ""
|
156 | 154 |
|
157 |
| -#: ../Doc/c-api/long.rst:135 ../Doc/c-api/long.rst:160 |
| 155 | +#: ../Doc/c-api/long.rst:134 ../Doc/c-api/long.rst:159 |
158 | 156 | msgid ""
|
159 | 157 | "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:"
|
160 | 158 | "type:`long`."
|
161 | 159 | msgstr ""
|
162 | 160 |
|
163 |
| -#: ../Doc/c-api/long.rst:145 |
| 161 | +#: ../Doc/c-api/long.rst:144 |
164 | 162 | msgid ""
|
165 | 163 | "If the value of *obj* is greater than :const:`LONG_MAX` or less than :const:"
|
166 | 164 | "`LONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, and return "
|
167 | 165 | "``-1``; otherwise, set *\\*overflow* to ``0``. If any other exception "
|
168 | 166 | "occurs set *\\*overflow* to ``0`` and return ``-1`` as usual."
|
169 | 167 | msgstr ""
|
170 | 168 |
|
171 |
| -#: ../Doc/c-api/long.rst:156 ../Doc/c-api/long.rst:166 |
| 169 | +#: ../Doc/c-api/long.rst:155 ../Doc/c-api/long.rst:165 |
172 | 170 | msgid ""
|
173 | 171 | "Return a C :c:type:`long long` representation of *obj*. If *obj* is not an "
|
174 | 172 | "instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method "
|
175 | 173 | "(if present) to convert it to a :c:type:`PyLongObject`."
|
176 | 174 | msgstr ""
|
177 | 175 |
|
178 |
| -#: ../Doc/c-api/long.rst:170 |
| 176 | +#: ../Doc/c-api/long.rst:169 |
179 | 177 | msgid ""
|
180 | 178 | "If the value of *obj* is greater than :const:`PY_LLONG_MAX` or less than :"
|
181 | 179 | "const:`PY_LLONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, "
|
182 | 180 | "and return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other "
|
183 | 181 | "exception occurs set *\\*overflow* to ``0`` and return ``-1`` as usual."
|
184 | 182 | msgstr ""
|
185 | 183 |
|
186 |
| -#: ../Doc/c-api/long.rst:184 |
| 184 | +#: ../Doc/c-api/long.rst:183 |
187 | 185 | msgid ""
|
188 | 186 | "Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must "
|
189 | 187 | "be an instance of :c:type:`PyLongObject`."
|
190 | 188 | msgstr ""
|
191 | 189 |
|
192 |
| -#: ../Doc/c-api/long.rst:187 |
| 190 | +#: ../Doc/c-api/long.rst:186 |
193 | 191 | msgid ""
|
194 | 192 | "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
|
195 | 193 | "type:`Py_ssize_t`."
|
196 | 194 | msgstr ""
|
197 | 195 |
|
198 |
| -#: ../Doc/c-api/long.rst:197 |
| 196 | +#: ../Doc/c-api/long.rst:196 |
199 | 197 | msgid ""
|
200 | 198 | "Return a C :c:type:`unsigned long` representation of *pylong*. *pylong* "
|
201 | 199 | "must be an instance of :c:type:`PyLongObject`."
|
202 | 200 | msgstr ""
|
203 | 201 |
|
204 |
| -#: ../Doc/c-api/long.rst:200 |
| 202 | +#: ../Doc/c-api/long.rst:199 |
205 | 203 | msgid ""
|
206 | 204 | "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
|
207 | 205 | "type:`unsigned long`."
|
208 | 206 | msgstr ""
|
209 | 207 |
|
210 |
| -#: ../Doc/c-api/long.rst:206 |
| 208 | +#: ../Doc/c-api/long.rst:205 |
211 | 209 | msgid ""
|
212 | 210 | "Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an "
|
213 | 211 | "instance of :c:type:`PyLongObject`."
|
214 | 212 | msgstr ""
|
215 | 213 |
|
216 |
| -#: ../Doc/c-api/long.rst:209 |
| 214 | +#: ../Doc/c-api/long.rst:208 |
217 | 215 | msgid ""
|
218 | 216 | "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
|
219 | 217 | "type:`size_t`."
|
220 | 218 | msgstr ""
|
221 | 219 |
|
222 |
| -#: ../Doc/c-api/long.rst:218 |
| 220 | +#: ../Doc/c-api/long.rst:217 |
223 | 221 | msgid ""
|
224 | 222 | "Return a C :c:type:`unsigned long long` representation of *pylong*. "
|
225 | 223 | "*pylong* must be an instance of :c:type:`PyLongObject`."
|
226 | 224 | msgstr ""
|
227 | 225 |
|
228 |
| -#: ../Doc/c-api/long.rst:221 |
| 226 | +#: ../Doc/c-api/long.rst:220 |
229 | 227 | msgid ""
|
230 | 228 | "Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :"
|
231 | 229 | "c:type:`unsigned long long`."
|
232 | 230 | msgstr ""
|
233 | 231 |
|
234 |
| -#: ../Doc/c-api/long.rst:224 |
| 232 | +#: ../Doc/c-api/long.rst:223 |
235 | 233 | msgid ""
|
236 | 234 | "A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`."
|
237 | 235 | msgstr ""
|
238 | 236 |
|
239 |
| -#: ../Doc/c-api/long.rst:230 |
| 237 | +#: ../Doc/c-api/long.rst:229 |
240 | 238 | msgid ""
|
241 | 239 | "Return a C :c:type:`unsigned long` representation of *obj*. If *obj* is not "
|
242 | 240 | "an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method "
|
243 | 241 | "(if present) to convert it to a :c:type:`PyLongObject`."
|
244 | 242 | msgstr ""
|
245 | 243 |
|
246 |
| -#: ../Doc/c-api/long.rst:234 |
| 244 | +#: ../Doc/c-api/long.rst:233 |
247 | 245 | msgid ""
|
248 | 246 | "If the value of *obj* is out of range for an :c:type:`unsigned long`, return "
|
249 | 247 | "the reduction of that value modulo ``ULONG_MAX + 1``."
|
250 | 248 | msgstr ""
|
251 | 249 |
|
252 |
| -#: ../Doc/c-api/long.rst:240 |
| 250 | +#: ../Doc/c-api/long.rst:239 |
253 | 251 | msgid ""
|
254 | 252 | "Return a C :c:type:`unsigned long long` representation of *obj*. If *obj* "
|
255 | 253 | "is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` "
|
256 | 254 | "method (if present) to convert it to a :c:type:`PyLongObject`."
|
257 | 255 | msgstr ""
|
258 | 256 |
|
259 |
| -#: ../Doc/c-api/long.rst:244 |
| 257 | +#: ../Doc/c-api/long.rst:243 |
260 | 258 | msgid ""
|
261 | 259 | "If the value of *obj* is out of range for an :c:type:`unsigned long long`, "
|
262 | 260 | "return the reduction of that value modulo ``PY_ULLONG_MAX + 1``."
|
263 | 261 | msgstr ""
|
264 | 262 |
|
265 |
| -#: ../Doc/c-api/long.rst:250 |
| 263 | +#: ../Doc/c-api/long.rst:249 |
266 | 264 | msgid ""
|
267 | 265 | "Return a C :c:type:`double` representation of *pylong*. *pylong* must be an "
|
268 | 266 | "instance of :c:type:`PyLongObject`."
|
269 | 267 | msgstr ""
|
270 | 268 |
|
271 |
| -#: ../Doc/c-api/long.rst:253 |
| 269 | +#: ../Doc/c-api/long.rst:252 |
272 | 270 | msgid ""
|
273 | 271 | "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
|
274 | 272 | "type:`double`."
|
275 | 273 | msgstr ""
|
276 | 274 |
|
277 |
| -#: ../Doc/c-api/long.rst:259 |
| 275 | +#: ../Doc/c-api/long.rst:258 |
278 | 276 | msgid ""
|
279 | 277 | "Convert a Python integer *pylong* to a C :c:type:`void` pointer. If *pylong* "
|
280 | 278 | "cannot be converted, an :exc:`OverflowError` will be raised. This is only "
|
|
0 commit comments