55#
66# Translators:
77# Rafael Fontenelle <rffontenelle@gmail.com>, 2023
8+ # Jones Martins, 2024
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version :Python 3.8\n "
1314"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2024-08-31 13:50 +0000\n "
15+ "POT-Creation-Date :2024-10-04 17:06 +0000\n "
1516"PO-Revision-Date :2020-05-30 11:50+0000\n "
16- "Last-Translator :Rafael Fontenelle <rffontenelle@gmail.com>, 2023 \n "
17+ "Last-Translator :Jones Martins, 2024 \n "
1718"Language-Team :Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
1819"teams/5390/pt_BR/)\n "
1920"MIME-Version :1.0\n "
@@ -153,26 +154,37 @@ msgid ""
153154"number of keys for which ``o[key] == value``. On failure, return ``-1``. "
154155"This is equivalent to the Python expression ``o.count(value)``."
155156msgstr ""
157+ "Retorna a quantidade de ocorrências de *value* em *o*, isto é, retorna a "
158+ "quantidade de chaves onde ``o[key] == value``. Em caso de falha, retorna "
159+ "``-1``. Isso equivale à expressão Python ``o.count(value)``."
156160
157161#: ../../c-api/sequence.rst:103
158162msgid ""
159163"Determine if *o* contains *value*. If an item in *o* is equal to *value*, "
160164"return ``1``, otherwise return ``0``. On error, return ``-1``. This is "
161165"equivalent to the Python expression ``value in o``."
162166msgstr ""
167+ "Determina se *o* contém *value*. Se um item em *o* for igual a *value*, "
168+ "retorna ``1``, senão, retorna ``0``. Em caso de erro, retorna ``-1``. Isso "
169+ "equivale à expressão Python ``value in o``."
163170
164171#: ../../c-api/sequence.rst:110
165172msgid ""
166173"Return the first index *i* for which ``o[i] == value``. On error, return "
167174"``-1``. This is equivalent to the Python expression ``o.index(value)``."
168175msgstr ""
176+ "Retorna o primeiro índice *i* tal que ``o[i] == value``. Em caso de erro, "
177+ "retorna ``-1``. Isso equivale à expressão Python ``o.index(value)``."
169178
170179#: ../../c-api/sequence.rst:116
171180msgid ""
172181"Return a list object with the same contents as the sequence or iterable *o*, "
173182"or ``NULL`` on failure. The returned list is guaranteed to be new. This is "
174183"equivalent to the Python expression ``list(o)``."
175184msgstr ""
185+ "Retorna um objeto lista com o mesmo conteúdo da sequência ou iterável *o*, "
186+ "ou ``NULL`` em caso de falha. Garante-se que a lista retornada será nova. "
187+ "Isso equivale à expressão Python ``list(o)``."
176188
177189#: ../../c-api/sequence.rst:125
178190msgid ""
@@ -181,6 +193,10 @@ msgid ""
181193"returned, otherwise a tuple will be constructed with the appropriate "
182194"contents. This is equivalent to the Python expression ``tuple(o)``."
183195msgstr ""
196+ "Retorna o objeto tupla com o mesmo conteúdo da sequência ou iterável *o*, ou "
197+ "``NULL``em caso de falha. Se *o* for uma tupla, retorna uma nova referência. "
198+ "Senão, uma tupla será construída com o conteúdo apropriado. Isso equivale à "
199+ "expressão Python ``tuple(o)``."
184200
185201#: ../../c-api/sequence.rst:133
186202msgid ""
@@ -189,19 +205,28 @@ msgid ""
189205"iterable, raises :exc:`TypeError` with *m* as the message text. Returns "
190206"``NULL`` on failure."
191207msgstr ""
208+ "Retorna a sequência ou iterável *o* como um objeto usável por outras funções "
209+ "da família ``PySequence_Fast*``. Se o objeto não for uma sequência ou "
210+ "iterável, levanta :exc:`TypeError` com *m* sendo o texto da mensagem. "
211+ "Retorna ``NULL`` em caso de falha. "
192212
193213#: ../../c-api/sequence.rst:138
194214msgid ""
195215"The ``PySequence_Fast*`` functions are thus named because they assume *o* is "
196216"a :c:type:`PyTupleObject` or a :c:type:`PyListObject` and access the data "
197217"fields of *o* directly."
198218msgstr ""
219+ "As funções ``PySequence_Fast*`` têm esse nome porque supõem que *o* é um :c:"
220+ "type:`PyTupleObject` ou um :c:type:`PyListObject` e porque acessam os campos "
221+ "de dados de *o* diretamente."
199222
200223#: ../../c-api/sequence.rst:142
201224msgid ""
202225"As a CPython implementation detail, if *o* is already a sequence or list, it "
203226"will be returned."
204227msgstr ""
228+ "Como detalhe de implementação de CPython, se *o* já for uma sequência ou "
229+ "lista, ele será retornado."
205230
206231#: ../../c-api/sequence.rst:148
207232msgid ""
@@ -217,19 +242,27 @@ msgid ""
217242"Return the *i*\\ th element of *o*, assuming that *o* was returned by :c:"
218243"func:`PySequence_Fast`, *o* is not ``NULL``, and that *i* is within bounds."
219244msgstr ""
245+ "Retorna o elemento *i* de *o*, presumindo que *o* foi retornado por :c:func:"
246+ "`PySequence_Fast`, que *o* não seja ``NULL``, e que *i* esteja dentro dos "
247+ "limites."
220248
221249#: ../../c-api/sequence.rst:163
222250msgid ""
223251"Return the underlying array of PyObject pointers. Assumes that *o* was "
224252"returned by :c:func:`PySequence_Fast` and *o* is not ``NULL``."
225253msgstr ""
254+ "Retorna o vetor subjacente de ponteiros PyObject. Presume que *o* foi "
255+ "retornado por :c:func:`PySequence_Fast` e *o* não é ``NULL``."
226256
227257#: ../../c-api/sequence.rst:166
228258msgid ""
229259"Note, if a list gets resized, the reallocation may relocate the items array. "
230260"So, only use the underlying array pointer in contexts where the sequence "
231261"cannot change."
232262msgstr ""
263+ "Note que, se uma lista for redimensionada, a realocação poderá reposicionar "
264+ "o vetor de itens. Portanto, só use o ponteiro de vetor subjacente em "
265+ "contextos onde a sequência não mudará."
233266
234267#: ../../c-api/sequence.rst:173
235268msgid ""
@@ -238,3 +271,6 @@ msgid ""
238271"`PySequence_Check` on *o* is true and without adjustment for negative "
239272"indices."
240273msgstr ""
274+ "Retorna o elemento *i* de *o*, ou ``NULL`` em caso de falha. É uma forma "
275+ "mais rápida de :c:func:`PySequence_GetItem`, mas sem verificar se :c:func:"
276+ "`PySequence_Check` em *o* é verdadeiro e sem ajustar índices negativos."