@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.13\n "
15
15
"Report-Msgid-Bugs-To : \n "
16
- "POT-Creation-Date : 2024-07-05 14:16+0000\n "
16
+ "POT-Creation-Date : 2024-08-30 14:16+0000\n "
17
17
"PO-Revision-Date : 2021-06-28 00:50+0000\n "
18
18
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
19
19
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -59,35 +59,30 @@ msgstr ""
59
59
"subtipo do tipo tupla. Esta função sempre tem sucesso."
60
60
61
61
#: ../../c-api/tuple.rst:36
62
- msgid "Return a new tuple object of size *len*, or ``NULL`` on failure."
62
+ msgid ""
63
+ "Return a new tuple object of size *len*, or ``NULL`` with an exception set "
64
+ "on failure."
63
65
msgstr ""
64
- "Retorna um novo objeto tupla de tamanho *len*, ou ``NULL`` em caso de falha."
65
66
66
- #: ../../c-api/tuple.rst:41
67
+ #: ../../c-api/tuple.rst:42
67
68
msgid ""
68
- "Return a new tuple object of size *n*, or ``NULL`` on failure. The tuple "
69
- "values are initialized to the subsequent *n* C arguments pointing to Python "
70
- "objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
69
+ "Return a new tuple object of size *n*, or ``NULL`` with an exception set on "
70
+ "failure. The tuple values are initialized to the subsequent *n* C arguments "
71
+ "pointing to Python objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
71
72
"``Py_BuildValue(\" (OO)\" , a, b)``."
72
73
msgstr ""
73
- "Retorna um novo objeto tupla de tamanho *n*, ou ``NULL`` em caso de falha. "
74
- "Os valores da tupla são inicializados para os *n* argumentos C subsequentes "
75
- "apontando para objetos Python. ```PyTuple_Pack(2, a, b)`` é equivalente a "
76
- "``Py_BuildValue(\" (OO)\" , a, b)``."
77
-
78
- #: ../../c-api/tuple.rst:48
79
- msgid "Take a pointer to a tuple object, and return the size of that tuple."
80
- msgstr "Pega um ponteiro para um objeto tupla e retorna o tamanho dessa tupla."
81
74
82
- #: ../../c-api/tuple.rst:53
75
+ #: ../../c-api/tuple.rst:50
83
76
msgid ""
84
- "Return the size of the tuple *p*, which must be non-``NULL`` and point to a "
85
- "tuple; no error checking is performed."
77
+ "Take a pointer to a tuple object, and return the size of that tuple. On "
78
+ "error, return ``-1`` and with an exception set."
79
+ msgstr ""
80
+
81
+ #: ../../c-api/tuple.rst:56
82
+ msgid "Like :c:func:`PyTuple_Size`, but without error checking."
86
83
msgstr ""
87
- "Retorna o tamanho da tupla *p*, que deve ser diferente de ``NULL`` e apontar "
88
- "para uma tupla; nenhuma verificação de erro é executada."
89
84
90
- #: ../../c-api/tuple.rst:59
85
+ #: ../../c-api/tuple.rst:61
91
86
msgid ""
92
87
"Return the object at position *pos* in the tuple pointed to by *p*. If "
93
88
"*pos* is negative or out of bounds, return ``NULL`` and set an :exc:"
@@ -97,28 +92,33 @@ msgstr ""
97
92
"estiver fora dos limites, retorna ``NULL`` e define uma exceção :exc:"
98
93
"`IndexError`."
99
94
100
- #: ../../c-api/tuple.rst:62
95
+ #: ../../c-api/tuple.rst:64
101
96
msgid ""
102
97
"The returned reference is borrowed from the tuple *p* (that is: it is only "
103
98
"valid as long as you hold a reference to *p*). To get a :term:`strong "
104
99
"reference`, use :c:func:`Py_NewRef(PyTuple_GetItem(...)) <Py_NewRef>` or :c:"
105
100
"func:`PySequence_GetItem`."
106
101
msgstr ""
107
102
108
- #: ../../c-api/tuple.rst:71
103
+ #: ../../c-api/tuple.rst:73
109
104
msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments."
110
105
msgstr ""
111
106
"Como :c:func:`PyTuple_GetItem`, mas faz nenhuma verificação de seus "
112
107
"argumentos."
113
108
114
- #: ../../c-api/tuple.rst:76
109
+ #: ../../c-api/tuple.rst:78
115
110
msgid ""
116
111
"Return the slice of the tuple pointed to by *p* between *low* and *high*, or "
117
- "``NULL`` on failure. This is the equivalent of the Python expression "
118
- "``p[low:high]``. Indexing from the end of the tuple is not supported."
112
+ "``NULL`` with an exception set on failure."
119
113
msgstr ""
120
114
121
- #: ../../c-api/tuple.rst:83
115
+ #: ../../c-api/tuple.rst:81
116
+ msgid ""
117
+ "This is the equivalent of the Python expression ``p[low:high]``. Indexing "
118
+ "from the end of the tuple is not supported."
119
+ msgstr ""
120
+
121
+ #: ../../c-api/tuple.rst:87
122
122
msgid ""
123
123
"Insert a reference to object *o* at position *pos* of the tuple pointed to "
124
124
"by *p*. Return ``0`` on success. If *pos* is out of bounds, return ``-1`` "
@@ -128,23 +128,24 @@ msgstr ""
128
128
"*p*. Retorna ``0`` em caso de sucesso. Se *pos* estiver fora dos limites, "
129
129
"retorne ``-1`` e define uma exceção :exc:`IndexError`."
130
130
131
- #: ../../c-api/tuple.rst:89
131
+ #: ../../c-api/tuple.rst:93
132
132
msgid ""
133
133
"This function \" steals\" a reference to *o* and discards a reference to an "
134
134
"item already in the tuple at the affected position."
135
135
msgstr ""
136
136
"Esta função \" rouba\" uma referência a *o* e descarta uma referência a um "
137
137
"item já na tupla na posição afetada."
138
138
139
- #: ../../c-api/tuple.rst:95
139
+ #: ../../c-api/tuple.rst:99
140
140
msgid ""
141
141
"Like :c:func:`PyTuple_SetItem`, but does no error checking, and should "
142
142
"*only* be used to fill in brand new tuples."
143
143
msgstr ""
144
144
"Como :c:func:`PyTuple_SetItem`, mas não verifica erros e deve *apenas* ser "
145
145
"usado para preencher novas tuplas."
146
146
147
- #: ../../c-api/tuple.rst:98 ../../c-api/tuple.rst:209 ../../c-api/tuple.rst:227
147
+ #: ../../c-api/tuple.rst:102 ../../c-api/tuple.rst:217
148
+ #: ../../c-api/tuple.rst:235
148
149
msgid ""
149
150
"Bounds checking is performed as an assertion if Python is built in :ref:"
150
151
"`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`."
@@ -153,7 +154,7 @@ msgstr ""
153
154
"construído em :ref:`modo de depuração <debug-build>` ou :option:`com "
154
155
"asserções <--with-assertions>`."
155
156
156
- #: ../../c-api/tuple.rst:103
157
+ #: ../../c-api/tuple.rst:107
157
158
msgid ""
158
159
"This function \" steals\" a reference to *o*, and, unlike :c:func:"
159
160
"`PyTuple_SetItem`, does *not* discard a reference to any item that is being "
@@ -164,7 +165,7 @@ msgstr ""
164
165
"sendo substituído; qualquer referência na tupla na posição *pos* será "
165
166
"perdida."
166
167
167
- #: ../../c-api/tuple.rst:111
168
+ #: ../../c-api/tuple.rst:115
168
169
msgid ""
169
170
"Can be used to resize a tuple. *newsize* will be the new length of the "
170
171
"tuple. Because tuples are *supposed* to be immutable, this should only be "
@@ -190,11 +191,11 @@ msgstr ""
190
191
"``-1`` e define ``*p`` para ``NULL``, e levanta :exc:`MemoryError` ou :exc:"
191
192
"`SystemError`."
192
193
193
- #: ../../c-api/tuple.rst:126
194
+ #: ../../c-api/tuple.rst:130
194
195
msgid "Struct Sequence Objects"
195
196
msgstr "Objetos sequência de estrutura"
196
197
197
- #: ../../c-api/tuple.rst:128
198
+ #: ../../c-api/tuple.rst:132
198
199
msgid ""
199
200
"Struct sequence objects are the C equivalent of :func:`~collections."
200
201
"namedtuple` objects, i.e. a sequence whose items can also be accessed "
@@ -206,7 +207,7 @@ msgstr ""
206
207
"ser acessados por meio de atributos. Para criar uma sequência de estrutura, "
207
208
"você primeiro precisa criar um tipo de sequência de estrutura específico."
208
209
209
- #: ../../c-api/tuple.rst:135
210
+ #: ../../c-api/tuple.rst:139
210
211
msgid ""
211
212
"Create a new struct sequence type from the data in *desc*, described below. "
212
213
"Instances of the resulting type can be created with :c:func:"
@@ -216,41 +217,43 @@ msgstr ""
216
217
"descrito abaixo. Instâncias do tipo resultante podem ser criadas com :c:func:"
217
218
"`PyStructSequence_New`."
218
219
219
- #: ../../c-api/tuple.rst:141
220
+ #: ../../c-api/tuple.rst:142 ../../c-api/tuple.rst:210
221
+ msgid "Return ``NULL`` with an exception set on failure."
222
+ msgstr ""
223
+
224
+ #: ../../c-api/tuple.rst:147
220
225
msgid "Initializes a struct sequence type *type* from *desc* in place."
221
226
msgstr ""
222
227
"Inicializa um tipo de sequência de estrutura *type* de *desc* no lugar."
223
228
224
- #: ../../c-api/tuple.rst:146
229
+ #: ../../c-api/tuple.rst:152
225
230
msgid ""
226
- "The same as `` PyStructSequence_InitType` `, but returns ``0`` on success and "
227
- "``-1`` on failure."
231
+ "Like :c:func:` PyStructSequence_InitType`, but returns ``0`` on success and "
232
+ "``-1`` with an exception set on failure."
228
233
msgstr ""
229
- "O mesmo que ``PyStructSequence_InitType``, mas retorna ``0`` em caso de "
230
- "sucesso e ``-1`` em caso de falha."
231
234
232
- #: ../../c-api/tuple.rst:154
235
+ #: ../../c-api/tuple.rst:160
233
236
msgid "Contains the meta information of a struct sequence type to create."
234
237
msgstr ""
235
238
"Contém as metainformações de um tipo de sequência de estrutura a ser criado."
236
239
237
- #: ../../c-api/tuple.rst:158
240
+ #: ../../c-api/tuple.rst:164
238
241
msgid "Name of the struct sequence type."
239
242
msgstr ""
240
243
241
- #: ../../c-api/tuple.rst:162
244
+ #: ../../c-api/tuple.rst:168
242
245
msgid "Pointer to docstring for the type or ``NULL`` to omit."
243
246
msgstr ""
244
247
245
- #: ../../c-api/tuple.rst:166
248
+ #: ../../c-api/tuple.rst:172
246
249
msgid "Pointer to ``NULL``-terminated array with field names of the new type."
247
250
msgstr ""
248
251
249
- #: ../../c-api/tuple.rst:170
252
+ #: ../../c-api/tuple.rst:176
250
253
msgid "Number of fields visible to the Python side (if used as tuple)."
251
254
msgstr ""
252
255
253
- #: ../../c-api/tuple.rst:175
256
+ #: ../../c-api/tuple.rst:181
254
257
msgid ""
255
258
"Describes a field of a struct sequence. As a struct sequence is modeled as a "
256
259
"tuple, all fields are typed as :c:expr:`PyObject*`. The index in the :c:"
@@ -259,46 +262,46 @@ msgid ""
259
262
"described."
260
263
msgstr ""
261
264
262
- #: ../../c-api/tuple.rst:183
265
+ #: ../../c-api/tuple.rst:189
263
266
msgid ""
264
267
"Name for the field or ``NULL`` to end the list of named fields, set to :c:"
265
268
"data:`PyStructSequence_UnnamedField` to leave unnamed."
266
269
msgstr ""
267
270
268
- #: ../../c-api/tuple.rst:188
271
+ #: ../../c-api/tuple.rst:194
269
272
msgid "Field docstring or ``NULL`` to omit."
270
273
msgstr ""
271
274
272
- #: ../../c-api/tuple.rst:193
275
+ #: ../../c-api/tuple.rst:199
273
276
msgid "Special value for a field name to leave it unnamed."
274
277
msgstr "Valor especial para um nome de campo para deixá-lo sem nome."
275
278
276
- #: ../../c-api/tuple.rst:195
279
+ #: ../../c-api/tuple.rst:201
277
280
msgid "The type was changed from ``char *``."
278
281
msgstr "O tipo foi alterado de ``char *``."
279
282
280
- #: ../../c-api/tuple.rst:201
283
+ #: ../../c-api/tuple.rst:207
281
284
msgid ""
282
285
"Creates an instance of *type*, which must have been created with :c:func:"
283
286
"`PyStructSequence_NewType`."
284
287
msgstr ""
285
288
"Cria um instância de *type*, que deve ser criada com :c:func:"
286
289
"`PyStructSequence_NewType`."
287
290
288
- #: ../../c-api/tuple.rst:207
291
+ #: ../../c-api/tuple.rst:215
289
292
msgid ""
290
293
"Return the object at position *pos* in the struct sequence pointed to by *p*."
291
294
msgstr ""
292
295
293
- #: ../../c-api/tuple.rst:215
296
+ #: ../../c-api/tuple.rst:223
294
297
msgid "Alias to :c:func:`PyStructSequence_GetItem`."
295
298
msgstr ""
296
299
297
- #: ../../c-api/tuple.rst:217
300
+ #: ../../c-api/tuple.rst:225
298
301
msgid "Now implemented as an alias to :c:func:`PyStructSequence_GetItem`."
299
302
msgstr ""
300
303
301
- #: ../../c-api/tuple.rst:223
304
+ #: ../../c-api/tuple.rst:231
302
305
msgid ""
303
306
"Sets the field at index *pos* of the struct sequence *p* to value *o*. "
304
307
"Like :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand "
@@ -308,15 +311,15 @@ msgstr ""
308
311
"*o*. Como :c:func:`PyTuple_SET_ITEM`, isto só deve ser usado para preencher "
309
312
"novas instâncias."
310
313
311
- #: ../../c-api/tuple.rst:232
314
+ #: ../../c-api/tuple.rst:240
312
315
msgid "This function \" steals\" a reference to *o*."
313
316
msgstr "Esta função \" rouba\" uma referência a *o*."
314
317
315
- #: ../../c-api/tuple.rst:237
318
+ #: ../../c-api/tuple.rst:245
316
319
msgid "Alias to :c:func:`PyStructSequence_SetItem`."
317
320
msgstr ""
318
321
319
- #: ../../c-api/tuple.rst:239
322
+ #: ../../c-api/tuple.rst:247
320
323
msgid "Now implemented as an alias to :c:func:`PyStructSequence_SetItem`."
321
324
msgstr ""
322
325
0 commit comments