@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.13\n "
1515"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 "
1717"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1818"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1919"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -59,35 +59,30 @@ msgstr ""
5959"subtipo do tipo tupla. Esta função sempre tem sucesso."
6060
6161#: ../../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."
6365msgstr ""
64- "Retorna um novo objeto tupla de tamanho *len*, ou ``NULL`` em caso de falha."
6566
66- #: ../../c-api/tuple.rst:41
67+ #: ../../c-api/tuple.rst:42
6768msgid ""
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 "
7172"``Py_BuildValue(\" (OO)\" , a, b)``."
7273msgstr ""
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."
8174
82- #: ../../c-api/tuple.rst:53
75+ #: ../../c-api/tuple.rst:50
8376msgid ""
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."
8683msgstr ""
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."
8984
90- #: ../../c-api/tuple.rst:59
85+ #: ../../c-api/tuple.rst:61
9186msgid ""
9287"Return the object at position *pos* in the tuple pointed to by *p*. If "
9388"*pos* is negative or out of bounds, return ``NULL`` and set an :exc:"
@@ -97,28 +92,33 @@ msgstr ""
9792"estiver fora dos limites, retorna ``NULL`` e define uma exceção :exc:"
9893"`IndexError`."
9994
100- #: ../../c-api/tuple.rst:62
95+ #: ../../c-api/tuple.rst:64
10196msgid ""
10297"The returned reference is borrowed from the tuple *p* (that is: it is only "
10398"valid as long as you hold a reference to *p*). To get a :term:`strong "
10499"reference`, use :c:func:`Py_NewRef(PyTuple_GetItem(...)) <Py_NewRef>` or :c:"
105100"func:`PySequence_GetItem`."
106101msgstr ""
107102
108- #: ../../c-api/tuple.rst:71
103+ #: ../../c-api/tuple.rst:73
109104msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments."
110105msgstr ""
111106"Como :c:func:`PyTuple_GetItem`, mas faz nenhuma verificação de seus "
112107"argumentos."
113108
114- #: ../../c-api/tuple.rst:76
109+ #: ../../c-api/tuple.rst:78
115110msgid ""
116111"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."
119113msgstr ""
120114
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
122122msgid ""
123123"Insert a reference to object *o* at position *pos* of the tuple pointed to "
124124"by *p*. Return ``0`` on success. If *pos* is out of bounds, return ``-1`` "
@@ -128,23 +128,24 @@ msgstr ""
128128"*p*. Retorna ``0`` em caso de sucesso. Se *pos* estiver fora dos limites, "
129129"retorne ``-1`` e define uma exceção :exc:`IndexError`."
130130
131- #: ../../c-api/tuple.rst:89
131+ #: ../../c-api/tuple.rst:93
132132msgid ""
133133"This function \" steals\" a reference to *o* and discards a reference to an "
134134"item already in the tuple at the affected position."
135135msgstr ""
136136"Esta função \" rouba\" uma referência a *o* e descarta uma referência a um "
137137"item já na tupla na posição afetada."
138138
139- #: ../../c-api/tuple.rst:95
139+ #: ../../c-api/tuple.rst:99
140140msgid ""
141141"Like :c:func:`PyTuple_SetItem`, but does no error checking, and should "
142142"*only* be used to fill in brand new tuples."
143143msgstr ""
144144"Como :c:func:`PyTuple_SetItem`, mas não verifica erros e deve *apenas* ser "
145145"usado para preencher novas tuplas."
146146
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
148149msgid ""
149150"Bounds checking is performed as an assertion if Python is built in :ref:"
150151"`debug mode <debug-build>` or :option:`with assertions <--with-assertions>`."
@@ -153,7 +154,7 @@ msgstr ""
153154"construído em :ref:`modo de depuração <debug-build>` ou :option:`com "
154155"asserções <--with-assertions>`."
155156
156- #: ../../c-api/tuple.rst:103
157+ #: ../../c-api/tuple.rst:107
157158msgid ""
158159"This function \" steals\" a reference to *o*, and, unlike :c:func:"
159160"`PyTuple_SetItem`, does *not* discard a reference to any item that is being "
@@ -164,7 +165,7 @@ msgstr ""
164165"sendo substituído; qualquer referência na tupla na posição *pos* será "
165166"perdida."
166167
167- #: ../../c-api/tuple.rst:111
168+ #: ../../c-api/tuple.rst:115
168169msgid ""
169170"Can be used to resize a tuple. *newsize* will be the new length of the "
170171"tuple. Because tuples are *supposed* to be immutable, this should only be "
@@ -190,11 +191,11 @@ msgstr ""
190191"``-1`` e define ``*p`` para ``NULL``, e levanta :exc:`MemoryError` ou :exc:"
191192"`SystemError`."
192193
193- #: ../../c-api/tuple.rst:126
194+ #: ../../c-api/tuple.rst:130
194195msgid "Struct Sequence Objects"
195196msgstr "Objetos sequência de estrutura"
196197
197- #: ../../c-api/tuple.rst:128
198+ #: ../../c-api/tuple.rst:132
198199msgid ""
199200"Struct sequence objects are the C equivalent of :func:`~collections."
200201"namedtuple` objects, i.e. a sequence whose items can also be accessed "
@@ -206,7 +207,7 @@ msgstr ""
206207"ser acessados por meio de atributos. Para criar uma sequência de estrutura, "
207208"você primeiro precisa criar um tipo de sequência de estrutura específico."
208209
209- #: ../../c-api/tuple.rst:135
210+ #: ../../c-api/tuple.rst:139
210211msgid ""
211212"Create a new struct sequence type from the data in *desc*, described below. "
212213"Instances of the resulting type can be created with :c:func:"
@@ -216,41 +217,43 @@ msgstr ""
216217"descrito abaixo. Instâncias do tipo resultante podem ser criadas com :c:func:"
217218"`PyStructSequence_New`."
218219
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
220225msgid "Initializes a struct sequence type *type* from *desc* in place."
221226msgstr ""
222227"Inicializa um tipo de sequência de estrutura *type* de *desc* no lugar."
223228
224- #: ../../c-api/tuple.rst:146
229+ #: ../../c-api/tuple.rst:152
225230msgid ""
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."
228233msgstr ""
229- "O mesmo que ``PyStructSequence_InitType``, mas retorna ``0`` em caso de "
230- "sucesso e ``-1`` em caso de falha."
231234
232- #: ../../c-api/tuple.rst:154
235+ #: ../../c-api/tuple.rst:160
233236msgid "Contains the meta information of a struct sequence type to create."
234237msgstr ""
235238"Contém as metainformações de um tipo de sequência de estrutura a ser criado."
236239
237- #: ../../c-api/tuple.rst:158
240+ #: ../../c-api/tuple.rst:164
238241msgid "Name of the struct sequence type."
239242msgstr ""
240243
241- #: ../../c-api/tuple.rst:162
244+ #: ../../c-api/tuple.rst:168
242245msgid "Pointer to docstring for the type or ``NULL`` to omit."
243246msgstr ""
244247
245- #: ../../c-api/tuple.rst:166
248+ #: ../../c-api/tuple.rst:172
246249msgid "Pointer to ``NULL``-terminated array with field names of the new type."
247250msgstr ""
248251
249- #: ../../c-api/tuple.rst:170
252+ #: ../../c-api/tuple.rst:176
250253msgid "Number of fields visible to the Python side (if used as tuple)."
251254msgstr ""
252255
253- #: ../../c-api/tuple.rst:175
256+ #: ../../c-api/tuple.rst:181
254257msgid ""
255258"Describes a field of a struct sequence. As a struct sequence is modeled as a "
256259"tuple, all fields are typed as :c:expr:`PyObject*`. The index in the :c:"
@@ -259,46 +262,46 @@ msgid ""
259262"described."
260263msgstr ""
261264
262- #: ../../c-api/tuple.rst:183
265+ #: ../../c-api/tuple.rst:189
263266msgid ""
264267"Name for the field or ``NULL`` to end the list of named fields, set to :c:"
265268"data:`PyStructSequence_UnnamedField` to leave unnamed."
266269msgstr ""
267270
268- #: ../../c-api/tuple.rst:188
271+ #: ../../c-api/tuple.rst:194
269272msgid "Field docstring or ``NULL`` to omit."
270273msgstr ""
271274
272- #: ../../c-api/tuple.rst:193
275+ #: ../../c-api/tuple.rst:199
273276msgid "Special value for a field name to leave it unnamed."
274277msgstr "Valor especial para um nome de campo para deixá-lo sem nome."
275278
276- #: ../../c-api/tuple.rst:195
279+ #: ../../c-api/tuple.rst:201
277280msgid "The type was changed from ``char *``."
278281msgstr "O tipo foi alterado de ``char *``."
279282
280- #: ../../c-api/tuple.rst:201
283+ #: ../../c-api/tuple.rst:207
281284msgid ""
282285"Creates an instance of *type*, which must have been created with :c:func:"
283286"`PyStructSequence_NewType`."
284287msgstr ""
285288"Cria um instância de *type*, que deve ser criada com :c:func:"
286289"`PyStructSequence_NewType`."
287290
288- #: ../../c-api/tuple.rst:207
291+ #: ../../c-api/tuple.rst:215
289292msgid ""
290293"Return the object at position *pos* in the struct sequence pointed to by *p*."
291294msgstr ""
292295
293- #: ../../c-api/tuple.rst:215
296+ #: ../../c-api/tuple.rst:223
294297msgid "Alias to :c:func:`PyStructSequence_GetItem`."
295298msgstr ""
296299
297- #: ../../c-api/tuple.rst:217
300+ #: ../../c-api/tuple.rst:225
298301msgid "Now implemented as an alias to :c:func:`PyStructSequence_GetItem`."
299302msgstr ""
300303
301- #: ../../c-api/tuple.rst:223
304+ #: ../../c-api/tuple.rst:231
302305msgid ""
303306"Sets the field at index *pos* of the struct sequence *p* to value *o*. "
304307"Like :c:func:`PyTuple_SET_ITEM`, this should only be used to fill in brand "
@@ -308,15 +311,15 @@ msgstr ""
308311"*o*. Como :c:func:`PyTuple_SET_ITEM`, isto só deve ser usado para preencher "
309312"novas instâncias."
310313
311- #: ../../c-api/tuple.rst:232
314+ #: ../../c-api/tuple.rst:240
312315msgid "This function \" steals\" a reference to *o*."
313316msgstr "Esta função \" rouba\" uma referência a *o*."
314317
315- #: ../../c-api/tuple.rst:237
318+ #: ../../c-api/tuple.rst:245
316319msgid "Alias to :c:func:`PyStructSequence_SetItem`."
317320msgstr ""
318321
319- #: ../../c-api/tuple.rst:239
322+ #: ../../c-api/tuple.rst:247
320323msgid "Now implemented as an alias to :c:func:`PyStructSequence_SetItem`."
321324msgstr ""
322325
0 commit comments