@@ -30,35 +30,47 @@ msgstr "Objetos Inteiros"
30
30
msgid ""
31
31
"All integers are implemented as \" long\" integer objects of arbitrary size."
32
32
msgstr ""
33
+ "Todos os inteiros são implementados como objetos inteiros \" longos\" de "
34
+ "tamanho arbitrário."
33
35
34
36
#: ../../c-api/long.rst:13
35
37
msgid ""
36
38
"On error, most ``PyLong_As*`` APIs return ``(return type)-1`` which cannot "
37
39
"be distinguished from a number. Use :c:func:`PyErr_Occurred` to "
38
40
"disambiguate."
39
41
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."
40
45
41
46
#: ../../c-api/long.rst:18
42
47
msgid "This subtype of :c:type:`PyObject` represents a Python integer object."
43
48
msgstr ""
49
+ "Este subtipo de :c:type:`PyObject` representa um objeto inteiro Python."
44
50
45
51
#: ../../c-api/long.rst:23
46
52
msgid ""
47
53
"This instance of :c:type:`PyTypeObject` represents the Python integer type. "
48
54
"This is the same object as :class:`int` in the Python layer."
49
55
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."
50
58
51
59
#: ../../c-api/long.rst:29
52
60
msgid ""
53
61
"Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:"
54
62
"type:`PyLongObject`."
55
63
msgstr ""
64
+ "Retorna true se seu argumento é um :c:type:`PyLongObject` ou um subtipo de :"
65
+ "c:type:`PyLongObject`."
56
66
57
67
#: ../../c-api/long.rst:35
58
68
msgid ""
59
69
"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
60
70
"of :c:type:`PyLongObject`."
61
71
msgstr ""
72
+ "Retorna true se seu argumento é um :c:type:`PyLongObject`, mas não um "
73
+ "subtipo de :c:type:`PyLongObject`."
62
74
63
75
#: ../../c-api/long.rst:41
64
76
msgid ""
@@ -136,6 +148,8 @@ msgid ""
136
148
"Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:"
137
149
"func:`PyLong_FromUnicodeObject`."
138
150
msgstr ""
151
+ "Parte do estilo antigo :c:type:`Py_UNICODE` API; por favor, migre o uso "
152
+ "para :c:func:`PyLong_FromUnicodeObject`."
139
153
140
154
#: ../../c-api/long.rst:112
141
155
msgid ""
@@ -150,6 +164,8 @@ msgid ""
150
164
"Create a Python integer from the pointer *p*. The pointer value can be "
151
165
"retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`."
152
166
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`."
153
169
154
170
#: ../../c-api/long.rst:133 ../../c-api/long.rst:145
155
171
msgid ""
@@ -163,12 +179,16 @@ msgid ""
163
179
"Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:"
164
180
"type:`long`."
165
181
msgstr ""
182
+ "Levanta :exc:`OverflowError` se o valor de *obj* estiver fora do intervalo "
183
+ "de um :c:type:`long`."
166
184
167
185
#: ../../c-api/long.rst:140 ../../c-api/long.rst:154 ../../c-api/long.rst:169
168
186
#: ../../c-api/long.rst:183 ../../c-api/long.rst:200 ../../c-api/long.rst:262
169
187
#: ../../c-api/long.rst:274
170
188
msgid "Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
171
189
msgstr ""
190
+ "Retorna ``-1`` no caso de erro. Use :c:func:`PyErr_Occurred` para "
191
+ "desambiguar."
172
192
173
193
#: ../../c-api/long.rst:149
174
194
msgid ""
@@ -177,6 +197,11 @@ msgid ""
177
197
"``-1``; otherwise, set *\\ *overflow* to ``0``. If any other exception "
178
198
"occurs set *\\ *overflow* to ``0`` and return ``-1`` as usual."
179
199
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."
180
205
181
206
#: ../../c-api/long.rst:162 ../../c-api/long.rst:174
182
207
msgid ""
@@ -198,71 +223,95 @@ msgid ""
198
223
"Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must "
199
224
"be an instance of :c:type:`PyLongObject`."
200
225
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`."
201
228
202
229
#: ../../c-api/long.rst:197
203
230
msgid ""
204
231
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
205
232
"type:`Py_ssize_t`."
206
233
msgstr ""
234
+ "Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
235
+ "intervalo de um :c:type:`Py_ssize_t`."
207
236
208
237
#: ../../c-api/long.rst:209
209
238
msgid ""
210
239
"Return a C :c:type:`unsigned long` representation of *pylong*. *pylong* "
211
240
"must be an instance of :c:type:`PyLongObject`."
212
241
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`."
213
244
214
245
#: ../../c-api/long.rst:212
215
246
msgid ""
216
247
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
217
248
"type:`unsigned long`."
218
249
msgstr ""
250
+ "Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
251
+ "intervalo de um :c:type:`unsigned long`."
219
252
220
253
#: ../../c-api/long.rst:215
221
254
msgid ""
222
255
"Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
223
256
"disambiguate."
224
257
msgstr ""
258
+ "Retorna ``(unsigned long)-1`` no caso de erro. Use :c:func:`PyErr_Occurred` "
259
+ "para desambiguar."
225
260
226
261
#: ../../c-api/long.rst:225
227
262
msgid ""
228
263
"Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an "
229
264
"instance of :c:type:`PyLongObject`."
230
265
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`."
231
268
232
269
#: ../../c-api/long.rst:228
233
270
msgid ""
234
271
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
235
272
"type:`size_t`."
236
273
msgstr ""
274
+ "Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
275
+ "intervalo de um :c:type:`size_t`."
237
276
238
277
#: ../../c-api/long.rst:231
239
278
msgid ""
240
279
"Returns ``(size_t)-1`` on error. Use :c:func:`PyErr_Occurred` to "
241
280
"disambiguate."
242
281
msgstr ""
282
+ "Retorna ``(size)-1`` no caso de erro. Use :c:func:`PyErr_Occurred` para "
283
+ "desambiguar."
243
284
244
285
#: ../../c-api/long.rst:240
245
286
msgid ""
246
287
"Return a C :c:type:`unsigned long long` representation of *pylong*. "
247
288
"*pylong* must be an instance of :c:type:`PyLongObject`."
248
289
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`."
249
292
250
293
#: ../../c-api/long.rst:243
251
294
msgid ""
252
295
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :"
253
296
"c:type:`unsigned long long`."
254
297
msgstr ""
298
+ "Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
299
+ "intervalo de um :c:type:`unsigned long long`."
255
300
256
301
#: ../../c-api/long.rst:246
257
302
msgid ""
258
303
"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
259
304
"disambiguate."
260
305
msgstr ""
306
+ "Retorna ``(unsigned long long)-1`` no caso de erro. Use :c:func:"
307
+ "`PyErr_Occurred` para desambiguar."
261
308
262
309
#: ../../c-api/long.rst:249
263
310
msgid ""
264
311
"A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`."
265
312
msgstr ""
313
+ "Um *pylong* negativo agora levanta :exc:`OverflowError`, não :exc:"
314
+ "`TypeError`."
266
315
267
316
#: ../../c-api/long.rst:255
268
317
msgid ""
@@ -276,6 +325,8 @@ msgid ""
276
325
"If the value of *obj* is out of range for an :c:type:`unsigned long`, return "
277
326
"the reduction of that value modulo ``ULONG_MAX + 1``."
278
327
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``."
279
330
280
331
#: ../../c-api/long.rst:267
281
332
msgid ""
@@ -295,17 +346,23 @@ msgid ""
295
346
"Return a C :c:type:`double` representation of *pylong*. *pylong* must be an "
296
347
"instance of :c:type:`PyLongObject`."
297
348
msgstr ""
349
+ "Retorna uma representação de :c:type:`double` C de *pylong*. *pylong* deve "
350
+ "ser uma instância de :c:type:`PyLongObject`."
298
351
299
352
#: ../../c-api/long.rst:282
300
353
msgid ""
301
354
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
302
355
"type:`double`."
303
356
msgstr ""
357
+ "Levanta :exc:`OverflowError` se o valor de *pylong* estiver fora do "
358
+ "intervalo de um :c:type:`double`."
304
359
305
360
#: ../../c-api/long.rst:285
306
361
msgid ""
307
362
"Returns ``-1.0`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
308
363
msgstr ""
364
+ "Retorna ``-1.0`` no caso de erro. Use :c:func:`PyErr_Occurred` para "
365
+ "desambiguar."
309
366
310
367
#: ../../c-api/long.rst:290
311
368
msgid ""
@@ -314,6 +371,10 @@ msgid ""
314
371
"assured to produce a usable :c:type:`void` pointer for values created with :"
315
372
"c:func:`PyLong_FromVoidPtr`."
316
373
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`."
317
378
318
379
#: ../../c-api/long.rst:295
319
380
msgid "Returns *NULL* on error. Use :c:func:`PyErr_Occurred` to disambiguate."
0 commit comments