Skip to content

Commit 2c2601d

Browse files
pomerge from 3.9 branch into 3.6
1 parent d2b6770 commit 2c2601d

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

c-api/long.po

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,47 @@ msgstr "Objetos Inteiros"
3030
msgid ""
3131
"All integers are implemented as \"long\" integer objects of arbitrary size."
3232
msgstr ""
33+
"Todos os inteiros são implementados como objetos inteiros \"longos\" de "
34+
"tamanho arbitrário."
3335

3436
#: ../../c-api/long.rst:13
3537
msgid ""
3638
"On error, most ``PyLong_As*`` APIs return ``(return type)-1`` which cannot "
3739
"be distinguished from a number. Use :c:func:`PyErr_Occurred` to "
3840
"disambiguate."
3941
msgstr ""
42+
"Em caso de erro, a maioria das APIs ``PyLong_As*`` retorna ``(tipo de "
43+
"retorno)-1`` que não pode ser distinguido de um número. Use :c:func:"
44+
"`PyErr_Occurred` para desambiguar."
4045

4146
#: ../../c-api/long.rst:18
4247
msgid "This subtype of :c:type:`PyObject` represents a Python integer object."
4348
msgstr ""
49+
"Este subtipo de :c:type:`PyObject` representa um objeto inteiro Python."
4450

4551
#: ../../c-api/long.rst:23
4652
msgid ""
4753
"This instance of :c:type:`PyTypeObject` represents the Python integer type. "
4854
"This is the same object as :class:`int` in the Python layer."
4955
msgstr ""
56+
"Esta instância de :c:type:`PyTypeObject` representa o tipo inteiro Python. "
57+
"Este é o mesmo objeto que :class:`int` na camada Python."
5058

5159
#: ../../c-api/long.rst:29
5260
msgid ""
5361
"Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:"
5462
"type:`PyLongObject`."
5563
msgstr ""
64+
"Retorna true se seu argumento é um :c:type:`PyLongObject` ou um subtipo de :"
65+
"c:type:`PyLongObject`."
5666

5767
#: ../../c-api/long.rst:35
5868
msgid ""
5969
"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
6070
"of :c:type:`PyLongObject`."
6171
msgstr ""
72+
"Retorna true se seu argumento é um :c:type:`PyLongObject`, mas não um "
73+
"subtipo de :c:type:`PyLongObject`."
6274

6375
#: ../../c-api/long.rst:41
6476
msgid ""
@@ -136,6 +148,8 @@ msgid ""
136148
"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:"
137149
"func:`PyLong_FromUnicodeObject`."
138150
msgstr ""
151+
"Parte do estilo antigo :c:type:`Py_UNICODE` API; por favor, migre o uso "
152+
"para :c:func:`PyLong_FromUnicodeObject`."
139153

140154
#: ../../c-api/long.rst:112
141155
msgid ""
@@ -150,6 +164,8 @@ msgid ""
150164
"Create a Python integer from the pointer *p*. The pointer value can be "
151165
"retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`."
152166
msgstr ""
167+
"Cria um inteiro Python a partir do ponteiro *p*. O valor do ponteiro pode "
168+
"ser recuperado do valor resultante usando :c:func:`PyLong_AsVoidPtr`."
153169

154170
#: ../../c-api/long.rst:133 ../../c-api/long.rst:145
155171
msgid ""
@@ -163,12 +179,16 @@ msgid ""
163179
"Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:"
164180
"type:`long`."
165181
msgstr ""
182+
"Levanta :exc:`OverflowError` se o valor de *obj* estiver fora do intervalo "
183+
"de um :c:type:`long`."
166184

167185
#: ../../c-api/long.rst:140 ../../c-api/long.rst:154 ../../c-api/long.rst:169
168186
#: ../../c-api/long.rst:183 ../../c-api/long.rst:200 ../../c-api/long.rst:262
169187
#: ../../c-api/long.rst:274
170188
msgid "Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
171189
msgstr ""
190+
"Retorna ``-1`` no caso de erro. Use :c:func:`PyErr_Occurred` para "
191+
"desambiguar."
172192

173193
#: ../../c-api/long.rst:149
174194
msgid ""
@@ -177,6 +197,11 @@ msgid ""
177197
"``-1``; otherwise, set *\\*overflow* to ``0``. If any other exception "
178198
"occurs set *\\*overflow* to ``0`` and return ``-1`` as usual."
179199
msgstr ""
200+
"Se o valor de *obj* for maior que :const:`LONG_MAX` ou menor que :const:"
201+
"`LONG_MIN`, define *\\*overflow* para ``1`` ou ``-1``, respectivamente, e "
202+
"retorna ``-1``; caso contrário, define *\\*overflow* para ``0``. Se qualquer "
203+
"outra exceção ocorrer, define *\\*overflow* para ``0`` e retorne ``-1`` como "
204+
"de costume."
180205

181206
#: ../../c-api/long.rst:162 ../../c-api/long.rst:174
182207
msgid ""
@@ -198,71 +223,95 @@ msgid ""
198223
"Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must "
199224
"be an instance of :c:type:`PyLongObject`."
200225
msgstr ""
226+
"Retorna uma representação de :c:type:`Py_ssize_t` C de *pylong*. *pylong* "
227+
"deve ser uma instância de :c:type:`PyLongObject`."
201228

202229
#: ../../c-api/long.rst:197
203230
msgid ""
204231
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
205232
"type:`Py_ssize_t`."
206233
msgstr ""
234+
"Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
235+
"intervalo de um :c:type:`Py_ssize_t`."
207236

208237
#: ../../c-api/long.rst:209
209238
msgid ""
210239
"Return a C :c:type:`unsigned long` representation of *pylong*. *pylong* "
211240
"must be an instance of :c:type:`PyLongObject`."
212241
msgstr ""
242+
"Retorna uma representação de :c:type:`unsigned long` C de *pylong*. *pylong* "
243+
"deve ser uma instância de :c:type:`PyLongObject`."
213244

214245
#: ../../c-api/long.rst:212
215246
msgid ""
216247
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
217248
"type:`unsigned long`."
218249
msgstr ""
250+
"Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
251+
"intervalo de um :c:type:`unsigned long`."
219252

220253
#: ../../c-api/long.rst:215
221254
msgid ""
222255
"Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
223256
"disambiguate."
224257
msgstr ""
258+
"Retorna ``(unsigned long)-1`` no caso de erro. Use :c:func:`PyErr_Occurred` "
259+
"para desambiguar."
225260

226261
#: ../../c-api/long.rst:225
227262
msgid ""
228263
"Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an "
229264
"instance of :c:type:`PyLongObject`."
230265
msgstr ""
266+
"Retorna uma representação de :c:type:`size_t` C de *pylong*. *pylong* deve "
267+
"ser uma instância de :c:type:`PyLongObject`."
231268

232269
#: ../../c-api/long.rst:228
233270
msgid ""
234271
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
235272
"type:`size_t`."
236273
msgstr ""
274+
"Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
275+
"intervalo de um :c:type:`size_t`."
237276

238277
#: ../../c-api/long.rst:231
239278
msgid ""
240279
"Returns ``(size_t)-1`` on error. Use :c:func:`PyErr_Occurred` to "
241280
"disambiguate."
242281
msgstr ""
282+
"Retorna ``(size)-1`` no caso de erro. Use :c:func:`PyErr_Occurred` para "
283+
"desambiguar."
243284

244285
#: ../../c-api/long.rst:240
245286
msgid ""
246287
"Return a C :c:type:`unsigned long long` representation of *pylong*. "
247288
"*pylong* must be an instance of :c:type:`PyLongObject`."
248289
msgstr ""
290+
"Retorna uma representação de :c:type:`unsigned long long` C de *pylong*. "
291+
"*pylong* deve ser uma instância de :c:type:`PyLongObject`."
249292

250293
#: ../../c-api/long.rst:243
251294
msgid ""
252295
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :"
253296
"c:type:`unsigned long long`."
254297
msgstr ""
298+
"Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
299+
"intervalo de um :c:type:`unsigned long long`."
255300

256301
#: ../../c-api/long.rst:246
257302
msgid ""
258303
"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
259304
"disambiguate."
260305
msgstr ""
306+
"Retorna ``(unsigned long long)-1`` no caso de erro. Use :c:func:"
307+
"`PyErr_Occurred` para desambiguar."
261308

262309
#: ../../c-api/long.rst:249
263310
msgid ""
264311
"A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`."
265312
msgstr ""
313+
"Um *pylong* negativo agora levanta :exc:`OverflowError`, não :exc:"
314+
"`TypeError`."
266315

267316
#: ../../c-api/long.rst:255
268317
msgid ""
@@ -276,6 +325,8 @@ msgid ""
276325
"If the value of *obj* is out of range for an :c:type:`unsigned long`, return "
277326
"the reduction of that value modulo ``ULONG_MAX + 1``."
278327
msgstr ""
328+
"Se o valor de *obj* estiver fora do intervalo para um :c:type:`unsigned "
329+
"long`, retorna a redução desse módulo de valor ``ULONG_MAX + 1``."
279330

280331
#: ../../c-api/long.rst:267
281332
msgid ""
@@ -295,17 +346,23 @@ msgid ""
295346
"Return a C :c:type:`double` representation of *pylong*. *pylong* must be an "
296347
"instance of :c:type:`PyLongObject`."
297348
msgstr ""
349+
"Retorna uma representação de :c:type:`double` C de *pylong*. *pylong* deve "
350+
"ser uma instância de :c:type:`PyLongObject`."
298351

299352
#: ../../c-api/long.rst:282
300353
msgid ""
301354
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
302355
"type:`double`."
303356
msgstr ""
357+
"Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
358+
"intervalo de um :c:type:`double`."
304359

305360
#: ../../c-api/long.rst:285
306361
msgid ""
307362
"Returns ``-1.0`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
308363
msgstr ""
364+
"Retorna ``-1.0`` no caso de erro. Use :c:func:`PyErr_Occurred` para "
365+
"desambiguar."
309366

310367
#: ../../c-api/long.rst:290
311368
msgid ""
@@ -314,6 +371,10 @@ msgid ""
314371
"assured to produce a usable :c:type:`void` pointer for values created with :"
315372
"c:func:`PyLong_FromVoidPtr`."
316373
msgstr ""
374+
"Converte um inteiro Python *pylong* em um ponteiro :c:type:`void` C. Se "
375+
"*pylong* não puder ser convertido, uma :exc:`OverflowError` será levantada. "
376+
"Isso só é garantido para produzir um ponteiro utilizável :c:type:`void` para "
377+
"valores criados com :c:func:`PyLong_FromVoidPtr`."
317378

318379
#: ../../c-api/long.rst:295
319380
msgid "Returns *NULL* on error. Use :c:func:`PyErr_Occurred` to disambiguate."

0 commit comments

Comments
 (0)