66# Translators:
77# Claudio Rogerio Carvalho Filho <excriptbrasil@gmail.com>, 2017
88# Lucas Sanches <sanches.lz@hotmail.com>, 2019
9- # Rafael Fontenelle <rffontenelle@gmail.com>, 2019
9+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2020
1010#
1111#, fuzzy
1212msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515"Report-Msgid-Bugs-To : \n "
1616"POT-Creation-Date : 2020-05-31 09:25+0000\n "
1717"PO-Revision-Date : 2017-02-16 17:38+0000\n "
18- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2019 \n "
18+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2020 \n "
1919"Language-Team : Portuguese (Brazil) (https://www.transifex.com/python-doc/ "
2020"teams/5390/pt_BR/)\n "
2121"MIME-Version : 1.0\n "
@@ -41,6 +41,16 @@ msgid ""
4141"c:func:`PyNumber_InPlaceSubtract`, :c:func:`PyNumber_InPlaceOr`, and :c:func:"
4242"`PyNumber_InPlaceXor`)."
4343msgstr ""
44+ "Esta seção detalha a API pública para os objetos :class:`set` e :class:"
45+ "`frozenset`. Qualquer funcionalidade não listada abaixo é melhor acessada "
46+ "usando o protocolo de objeto abstrato (incluindo :c:func:"
47+ "`PyObject_CallMethod`, :c:func:`PyObject_RichCompareBool`, :c:func:"
48+ "`PyObject_Hash`, :c:func:`PyObject_Repr`, :c:func:`PyObject_IsTrue`, :c:func:"
49+ "`PyObject_Print`, and :c:func:`PyObject_GetIter`) ou o protocolo abstrato de "
50+ "número (incluindo :c:func:`PyNumber_And`, :c:func:`PyNumber_Subtract`, :c:"
51+ "func:`PyNumber_Or`, :c:func:`PyNumber_Xor`, :c:func:`PyNumber_InPlaceAnd`, :"
52+ "c:func:`PyNumber_InPlaceSubtract`, :c:func:`PyNumber_InPlaceOr` e :c:func:"
53+ "`PyNumber_InPlaceXor`)."
4454
4555#: ../../c-api/set.rst:29
4656msgid ""
@@ -53,6 +63,15 @@ msgid ""
5363"access should be done through the documented API rather than by manipulating "
5464"the values in the structure."
5565msgstr ""
66+ "Este subtipo de :c:type:`PyObject` é usado para manter os dados internos "
67+ "para ambos os objetos :class:`set` e :class:`frozenset`. É como um :c:type:"
68+ "`PyDictObject` em que tem um tamanho fixo para conjuntos pequenos (muito "
69+ "parecido com o armazenamento de tupla) e apontará para um bloco de memória "
70+ "de tamanho variável separado para conjuntos de tamanho médio e grande (muito "
71+ "parecido com lista armazenamento). Nenhum dos campos desta estrutura deve "
72+ "ser considerado público e está sujeito a alterações. Todo o acesso deve ser "
73+ "feito por meio da API documentada, em vez de manipular os valores na "
74+ "estrutura."
5675
5776#: ../../c-api/set.rst:40
5877msgid ""
@@ -67,41 +86,56 @@ msgid ""
6786"This is an instance of :c:type:`PyTypeObject` representing the Python :class:"
6887"`frozenset` type."
6988msgstr ""
89+ "Esta é uma instância de :c:type:`PyTypeObject` representando o tipo Python :"
90+ "class:`frozenset`."
7091
7192#: ../../c-api/set.rst:49
7293msgid ""
7394"The following type check macros work on pointers to any Python object. "
7495"Likewise, the constructor functions work with any iterable Python object."
7596msgstr ""
97+ "As macros de verificação de tipo a seguir funcionam em ponteiros para "
98+ "qualquer objeto Python. Da mesma forma, as funções construtoras funcionam "
99+ "com qualquer objeto Python iterável."
76100
77101#: ../../c-api/set.rst:55
78102msgid ""
79103"Return true if *p* is a :class:`set` object or an instance of a subtype."
80104msgstr ""
105+ "Retorna verdadeiro se *p* for um objeto :class:`set` ou uma instância de um "
106+ "subtipo."
81107
82108#: ../../c-api/set.rst:59
83109msgid ""
84110"Return true if *p* is a :class:`frozenset` object or an instance of a "
85111"subtype."
86112msgstr ""
113+ "Retorna verdadeiro se *p* for um objeto :class:`frozenset` ou uma instância "
114+ "de um subtipo."
87115
88116#: ../../c-api/set.rst:64
89117msgid ""
90118"Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or "
91119"an instance of a subtype."
92120msgstr ""
121+ "Retorna verdadeiro se *p* for um objeto :class:`set`, um objeto :class:"
122+ "`frozenset` ou uma instância de um subtipo."
93123
94124#: ../../c-api/set.rst:70
95125msgid ""
96126"Return true if *p* is a :class:`set` object or a :class:`frozenset` object "
97127"but not an instance of a subtype."
98128msgstr ""
129+ "Retorna verdadeiro se *p* for um objeto :class:`set` ou um objeto :class:"
130+ "`frozenset`, mas não uma instância de um subtipo."
99131
100132#: ../../c-api/set.rst:76
101133msgid ""
102134"Return true if *p* is a :class:`frozenset` object but not an instance of a "
103135"subtype."
104136msgstr ""
137+ "Retorna verdadeiro se *p* for um objeto :class:`frozenset`, mas não uma "
138+ "instância de um subtipo."
105139
106140#: ../../c-api/set.rst:82
107141msgid ""
@@ -111,6 +145,11 @@ msgid ""
111145"is not actually iterable. The constructor is also useful for copying a set "
112146"(``c=set(s)``)."
113147msgstr ""
148+ "Retorna uma nova :class:`set` contendo objetos retornados pelo iterável "
149+ "*iterable*. O *iterable* pode ser ``NULL`` para criar um novo conjunto "
150+ "vazio. Retorna o novo conjunto em caso de sucesso ou ``NULL`` em caso de "
151+ "falha. Levanta :exc:`TypeError` se *iterable* não for realmente iterável. O "
152+ "construtor também é útil para copiar um conjunto (``c=set(s)``)."
114153
115154#: ../../c-api/set.rst:91
116155msgid ""
@@ -119,23 +158,34 @@ msgid ""
119158"Return the new set on success or ``NULL`` on failure. Raise :exc:"
120159"`TypeError` if *iterable* is not actually iterable."
121160msgstr ""
161+ "Retorna uma nova :class:`frozenset` contendo objetos retornados pelo "
162+ "iterável *iterable*. O *iterable* pode ser ``NULL`` para criar um novo "
163+ "frozenset vazio. Retorna o novo conjunto em caso de sucesso ou ``NULL`` em "
164+ "caso de falha. Levanta :exc:`TypeError` se *iterable* não for realmente "
165+ "iterável."
122166
123167#: ../../c-api/set.rst:97
124168msgid ""
125169"The following functions and macros are available for instances of :class:"
126170"`set` or :class:`frozenset` or instances of their subtypes."
127171msgstr ""
172+ "As seguintes funções e macros estão disponíveis para instâncias de :class:"
173+ "`set` ou :class:`frozenset` ou instâncias de seus subtipos."
128174
129175#: ../../c-api/set.rst:105
130176msgid ""
131177"Return the length of a :class:`set` or :class:`frozenset` object. Equivalent "
132178"to ``len(anyset)``. Raises a :exc:`PyExc_SystemError` if *anyset* is not a :"
133179"class:`set`, :class:`frozenset`, or an instance of a subtype."
134180msgstr ""
181+ "Retorna o comprimento de um objeto :class:`set` ou :class:`frozenset`. "
182+ "Equivalente a ``len(anyset)``. Levanta um :exc:`PyExc_SystemError` se "
183+ "*anyset* não for um :class:`set`, :class:`frozenset`, ou uma instância de um "
184+ "subtipo."
135185
136186#: ../../c-api/set.rst:112
137187msgid "Macro form of :c:func:`PySet_Size` without error checking."
138- msgstr ""
188+ msgstr "Forma macro de :c:func:`PySet_Size` sem verificação de erros. "
139189
140190#: ../../c-api/set.rst:117
141191msgid ""
@@ -146,6 +196,12 @@ msgid ""
146196"`PyExc_SystemError` if *anyset* is not a :class:`set`, :class:`frozenset`, "
147197"or an instance of a subtype."
148198msgstr ""
199+ "Retorna ``1`` se encontrado, ``0`` se não encontrado, e ``-1`` se um erro é "
200+ "encontrado. Ao contrário do método Python :meth:`__contains__`, esta função "
201+ "não converte automaticamente conjuntos não hasheáveis em frozensets "
202+ "temporários. Levanta um :exc:`TypeError` se a *key* não for hasheável. "
203+ "Levanta :exc:`PyExc_SystemError` se *anyset* não é um :class:`set`, :class:"
204+ "`frozenset`, ou uma instância de um subtipo."
149205
150206#: ../../c-api/set.rst:126
151207msgid ""
@@ -157,12 +213,23 @@ msgid ""
157213"grow. Raise a :exc:`SystemError` if *set* is not an instance of :class:"
158214"`set` or its subtype."
159215msgstr ""
216+ "Adiciona *key* a uma instância de :class:`set`. Também funciona com "
217+ "instâncias de :class:`frozenset` (como :c:func:`PyTuple_SetItem`, ele pode "
218+ "ser usado para preencher os valores de novos conjuntos de congelamentos "
219+ "antes que eles sejam expostos a outro código). Retorna ``0`` em caso de "
220+ "sucesso ou ``-1`` em caso de falha. Levanta um :exc:`TypeError` se a *key* "
221+ "não for hasheável. Levanta uma :exc:`MemoryError` se não houver espaço para "
222+ "crescer. Levanta uma :exc:`SystemError` se *set* não for uma instância de :"
223+ "class:`set` ou seu subtipo."
160224
161225#: ../../c-api/set.rst:135
162226msgid ""
163227"The following functions are available for instances of :class:`set` or its "
164228"subtypes but not for instances of :class:`frozenset` or its subtypes."
165229msgstr ""
230+ "As seguintes funções estão disponíveis para instâncias de :class:`set` ou "
231+ "seus subtipos, mas não para instâncias de :class:`frozenset` ou seus "
232+ "subtipos."
166233
167234#: ../../c-api/set.rst:141
168235msgid ""
@@ -174,6 +241,13 @@ msgid ""
174241"`PyExc_SystemError` if *set* is not an instance of :class:`set` or its "
175242"subtype."
176243msgstr ""
244+ "Retorna ``1`` se encontrado e removido, ``0`` se não encontrado (nenhuma "
245+ "ação realizada) e ``-1`` se um erro for encontrado. Não levanta :exc:"
246+ "`KeyError` para chaves ausentes. Levanta uma :exc:`TypeError` se a *key* não "
247+ "for hasheável. Ao contrário do método Python :meth:`~set.discard`, esta "
248+ "função não converte automaticamente conjuntos não hasheáveis em frozensets "
249+ "temporários. Levanta :exc:`PyExc_SystemError` se *set* não é uma instância "
250+ "de :class:`set` ou seu subtipo."
177251
178252#: ../../c-api/set.rst:151
179253msgid ""
@@ -182,6 +256,10 @@ msgid ""
182256"if the set is empty. Raise a :exc:`SystemError` if *set* is not an instance "
183257"of :class:`set` or its subtype."
184258msgstr ""
259+ "Retorna uma nova referência a um objeto arbitrário no *set* e remove o "
260+ "objeto do *set*. Retorna ``NULL`` em caso de falha. Levanta :exc:`KeyError` "
261+ "se o conjunto estiver vazio. Levanta uma :exc:`SystemError` se *set* não for "
262+ "uma instância de :class:`set` ou seu subtipo."
185263
186264#: ../../c-api/set.rst:159
187265msgid "Empty an existing set of all elements."
0 commit comments