@@ -63,6 +63,7 @@ msgstr ""
6363#: ../../c-api/tuple.rst:36
6464msgid "Return a new tuple object of size *len*, or ``NULL`` on failure."
6565msgstr ""
66+ "Retorna um novo objeto tupla de tamanho *len*, ou ``NULL`` em caso de falha."
6667
6768#: ../../c-api/tuple.rst:41
6869msgid ""
@@ -71,60 +72,85 @@ msgid ""
7172"objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
7273"``Py_BuildValue(\" (OO)\" , a, b)``."
7374msgstr ""
75+ "Retorna um novo objeto tupla de tamanho *n*, ou ``NULL`` em caso de falha. "
76+ "Os valores da tupla são inicializados para os *n* argumentos C subsequentes "
77+ "apontando para objetos Python. ```PyTuple_Pack(2, a, b)`` é equivalente a "
78+ "``Py_BuildValue(\" (OO)\" , a, b)``."
7479
7580#: ../../c-api/tuple.rst:48
7681msgid "Take a pointer to a tuple object, and return the size of that tuple."
77- msgstr ""
82+ msgstr "Pega um ponteiro para um objeto tupla e retorna o tamanho dessa tupla. "
7883
7984#: ../../c-api/tuple.rst:53
8085msgid ""
8186"Return the size of the tuple *p*, which must be non-``NULL`` and point to a "
8287"tuple; no error checking is performed."
8388msgstr ""
89+ "Retorna o tamanho da tupla *p*, que deve ser diferente de ``NULL`` e apontar "
90+ "para uma tupla; nenhuma verificação de erro é executada."
8491
8592#: ../../c-api/tuple.rst:59
8693msgid ""
8794"Return the object at position *pos* in the tuple pointed to by *p*. If "
8895"*pos* is out of bounds, return ``NULL`` and set an :exc:`IndexError` "
8996"exception."
9097msgstr ""
98+ "Retorna o objeto na posição *pos* na tupla apontada por *p*. Se *pos* "
99+ "estiver fora dos limites, retorna ``NULL`` e define uma exceção :exc:"
100+ "`IndexError`."
91101
92102#: ../../c-api/tuple.rst:65
93103msgid "Like :c:func:`PyTuple_GetItem`, but does no checking of its arguments."
94104msgstr ""
105+ "Como :c:func:`PyTuple_GetItem`, mas faz nenhuma verificação de seus "
106+ "argumentos."
95107
96108#: ../../c-api/tuple.rst:70
97109msgid ""
98110"Return the slice of the tuple pointed to by *p* between *low* and *high*, or "
99111"``NULL`` on failure. This is the equivalent of the Python expression "
100112"``p[low:high]``. Indexing from the end of the list is not supported."
101113msgstr ""
114+ "Retorna a fatia da tupla apontada por *p* entre *low* (baixo) e *high* "
115+ "(alto), ou ``NULL`` em caso de falha. Este é o equivalente da expressão "
116+ "Python ``p[low:high]``. A indexação do final da lista não é suportada."
102117
103118#: ../../c-api/tuple.rst:77
104119msgid ""
105120"Insert a reference to object *o* at position *pos* of the tuple pointed to "
106121"by *p*. Return ``0`` on success. If *pos* is out of bounds, return ``-1`` "
107122"and set an :exc:`IndexError` exception."
108123msgstr ""
124+ "Insere uma referência ao objeto *o* na posição *pos* da tupla apontada por "
125+ "*p*. Retorna ``0`` em caso de sucesso. Se *pos* estiver fora dos limites, "
126+ "retorne ``-1`` e define uma exceção :exc:`IndexError`."
109127
110128#: ../../c-api/tuple.rst:83
111129msgid ""
112130"This function \" steals\" a reference to *o* and discards a reference to an "
113131"item already in the tuple at the affected position."
114132msgstr ""
133+ "Esta função \" rouba\" uma referência a *o* e descarta uma referência a um "
134+ "item já na tupla na posição afetada."
115135
116136#: ../../c-api/tuple.rst:89
117137msgid ""
118138"Like :c:func:`PyTuple_SetItem`, but does no error checking, and should "
119139"*only* be used to fill in brand new tuples."
120140msgstr ""
141+ "Como :c:func:`PyTuple_SetItem`, mas não verifica erros e deve *apenas* ser "
142+ "usado para preencher novas tuplas."
121143
122144#: ../../c-api/tuple.rst:94
123145msgid ""
124146"This macro \" steals\" a reference to *o*, and, unlike :c:func:"
125147"`PyTuple_SetItem`, does *not* discard a reference to any item that is being "
126148"replaced; any reference in the tuple at position *pos* will be leaked."
127149msgstr ""
150+ "Esta macro \" rouba\" uma referência para *o* e, ao contrário de :c:func:"
151+ "`PyTuple_SetItem`, *não* descarta uma referência para nenhum item que esteja "
152+ "sendo substituído; qualquer referência na tupla na posição *pos* será "
153+ "perdida."
128154
129155#: ../../c-api/tuple.rst:102
130156msgid ""
0 commit comments