Skip to content

Commit c0db08a

Browse files
Update translations from Transifex
1 parent cda3217 commit c0db08a

9 files changed

Lines changed: 269 additions & 22 deletions

File tree

c-api/refcounting.po

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Claudio Rogerio Carvalho Filho <excriptbrasil@gmail.com>, 2017
7+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2020
88
#
99
#, fuzzy
1010
msgid ""
@@ -13,8 +13,7 @@ msgstr ""
1313
"Report-Msgid-Bugs-To: \n"
1414
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
1515
"PO-Revision-Date: 2017-02-16 17:38+0000\n"
16-
"Last-Translator: Claudio Rogerio Carvalho Filho <excriptbrasil@gmail.com>, "
17-
"2017\n"
16+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2020\n"
1817
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/"
1918
"teams/5390/pt_BR/)\n"
2019
"MIME-Version: 1.0\n"
@@ -25,26 +24,33 @@ msgstr ""
2524

2625
#: ../../c-api/refcounting.rst:8
2726
msgid "Reference Counting"
28-
msgstr "Contagem de Referência"
27+
msgstr "Contagem de Referências"
2928

3029
#: ../../c-api/refcounting.rst:10
3130
msgid ""
3231
"The macros in this section are used for managing reference counts of Python "
3332
"objects."
3433
msgstr ""
34+
"As macros nesta seção são usadas para gerenciar contagens de referências de "
35+
"objetos Python."
3536

3637
#: ../../c-api/refcounting.rst:16
3738
msgid ""
3839
"Increment the reference count for object *o*. The object must not be "
3940
"``NULL``; if you aren't sure that it isn't ``NULL``, use :c:func:"
4041
"`Py_XINCREF`."
4142
msgstr ""
43+
"Aumenta a contagem de referências para o objeto *o*. O objeto não deve ser "
44+
"``NULL``; se você não tem certeza de que não é ``NULL``, use :c:func:"
45+
"`Py_XINCREF`."
4246

4347
#: ../../c-api/refcounting.rst:22
4448
msgid ""
4549
"Increment the reference count for object *o*. The object may be ``NULL``, "
4650
"in which case the macro has no effect."
4751
msgstr ""
52+
"Aumenta a contagem de referências para o objeto *o*. O objeto pode ser "
53+
"``NULL``, caso em que a macro não tem efeito."
4854

4955
#: ../../c-api/refcounting.rst:28
5056
msgid ""
@@ -53,6 +59,10 @@ msgid ""
5359
"`Py_XDECREF`. If the reference count reaches zero, the object's type's "
5460
"deallocation function (which must not be ``NULL``) is invoked."
5561
msgstr ""
62+
"Diminui a contagem de referências para o objeto *o*. O objeto não deve ser "
63+
"``NULL``; se você não tem certeza de que não é ``NULL``, use :c:func:"
64+
"`Py_XDECREF`. Se a contagem de referências chegar a zero, a função de "
65+
"desalocação do tipo de objeto (que não deve ser ``NULL``) é chamada."
5666

5767
#: ../../c-api/refcounting.rst:35
5868
msgid ""
@@ -66,13 +76,26 @@ msgid ""
6676
"update the list data structure, and then call :c:func:`Py_DECREF` for the "
6777
"temporary variable."
6878
msgstr ""
79+
"A função de desalocação pode fazer com que o código Python arbitrário seja "
80+
"invocado (por exemplo, quando uma instância de classe com um método :meth:"
81+
"`__del__` é desalocada). Embora as exceções em tal código não sejam "
82+
"propagadas, o código executado tem acesso livre a todas as variáveis globais "
83+
"do Python. Isso significa que qualquer objeto que é alcançável de uma "
84+
"variável global deve estar em um estado consistente antes de :c:func:"
85+
"`Py_DECREF` ser invocado. Por exemplo, o código para excluir um objeto de "
86+
"uma lista deve copiar uma referência ao objeto excluído em uma variável "
87+
"temporária, atualizar a estrutura de dados da lista e então chamar :c:func:"
88+
"`Py_DECREF` para a variável temporária."
6989

7090
#: ../../c-api/refcounting.rst:47
7191
msgid ""
7292
"Decrement the reference count for object *o*. The object may be ``NULL``, "
7393
"in which case the macro has no effect; otherwise the effect is the same as "
7494
"for :c:func:`Py_DECREF`, and the same warning applies."
7595
msgstr ""
96+
"Diminui a contagem de referências para o objeto *o*. O objeto pode ser "
97+
"``NULL``, caso em que a macro não tem efeito; caso contrário, o efeito é o "
98+
"mesmo de :c:func:`Py_DECREF`, e o mesmo aviso se aplica."
7699

77100
#: ../../c-api/refcounting.rst:54
78101
msgid ""
@@ -83,12 +106,21 @@ msgid ""
83106
"object passed because the macro carefully uses a temporary variable and sets "
84107
"the argument to ``NULL`` before decrementing its reference count."
85108
msgstr ""
109+
"Diminui a contagem de referências para o objeto *o*. O objeto pode ser "
110+
"``NULL``, caso em que a macro não tem efeito; caso contrário, o efeito é o "
111+
"mesmo de :c:func:`Py_DECREF`, exceto que o argumento também é definido como "
112+
"``NULL``. O aviso para :c:func:`Py_DECREF` não se aplica em relação ao "
113+
"objeto passado porque a macro usa cuidadosamente uma variável temporária e "
114+
"define o argumento como ``NULL`` antes de diminuir sua contagem de "
115+
"referências."
86116

87117
#: ../../c-api/refcounting.rst:61
88118
msgid ""
89119
"It is a good idea to use this macro whenever decrementing the reference "
90120
"count of an object that might be traversed during garbage collection."
91121
msgstr ""
122+
"É uma boa ideia usar essa macro sempre que diminuir a contagem de "
123+
"referências de um objeto que pode ser percorrido durante a coleta de lixo."
92124

93125
#: ../../c-api/refcounting.rst:65
94126
msgid ""
@@ -97,10 +129,17 @@ msgid ""
97129
"exported function versions of :c:func:`Py_XINCREF` and :c:func:`Py_XDECREF`, "
98130
"respectively."
99131
msgstr ""
132+
"As seguintes funções são para incorporação dinâmica de Python em tempo de "
133+
"execução: ``Py_IncRef(PyObject *o)``, ``Py_DecRef(PyObject *o)``. Elas são "
134+
"simplesmente versões de função exportadas de :c:func:`Py_XINCREF` e :c:func:"
135+
"`Py_XDECREF`, respectivamente."
100136

101137
#: ../../c-api/refcounting.rst:70
102138
msgid ""
103139
"The following functions or macros are only for use within the interpreter "
104140
"core: :c:func:`_Py_Dealloc`, :c:func:`_Py_ForgetReference`, :c:func:"
105141
"`_Py_NewReference`, as well as the global variable :c:data:`_Py_RefTotal`."
106142
msgstr ""
143+
"As seguintes funções ou macros são apenas para uso dentro do núcleo do "
144+
"interpretador: :c:func:`_Py_Dealloc`, :c:func:`_Py_ForgetReference`, :c:func:"
145+
"`_Py_NewReference`, bem como a variável global :c:data:`_Py_RefTotal`."

c-api/set.po

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
1212
msgid ""
@@ -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`)."
4343
msgstr ""
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
4656
msgid ""
@@ -53,6 +63,15 @@ msgid ""
5363
"access should be done through the documented API rather than by manipulating "
5464
"the values in the structure."
5565
msgstr ""
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
5877
msgid ""
@@ -67,41 +86,56 @@ msgid ""
6786
"This is an instance of :c:type:`PyTypeObject` representing the Python :class:"
6887
"`frozenset` type."
6988
msgstr ""
89+
"Esta é uma instância de :c:type:`PyTypeObject` representando o tipo Python :"
90+
"class:`frozenset`."
7091

7192
#: ../../c-api/set.rst:49
7293
msgid ""
7394
"The following type check macros work on pointers to any Python object. "
7495
"Likewise, the constructor functions work with any iterable Python object."
7596
msgstr ""
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
78102
msgid ""
79103
"Return true if *p* is a :class:`set` object or an instance of a subtype."
80104
msgstr ""
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
83109
msgid ""
84110
"Return true if *p* is a :class:`frozenset` object or an instance of a "
85111
"subtype."
86112
msgstr ""
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
89117
msgid ""
90118
"Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or "
91119
"an instance of a subtype."
92120
msgstr ""
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
95125
msgid ""
96126
"Return true if *p* is a :class:`set` object or a :class:`frozenset` object "
97127
"but not an instance of a subtype."
98128
msgstr ""
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
101133
msgid ""
102134
"Return true if *p* is a :class:`frozenset` object but not an instance of a "
103135
"subtype."
104136
msgstr ""
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
107141
msgid ""
@@ -111,6 +145,11 @@ msgid ""
111145
"is not actually iterable. The constructor is also useful for copying a set "
112146
"(``c=set(s)``)."
113147
msgstr ""
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
116155
msgid ""
@@ -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."
121160
msgstr ""
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
124168
msgid ""
125169
"The following functions and macros are available for instances of :class:"
126170
"`set` or :class:`frozenset` or instances of their subtypes."
127171
msgstr ""
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
130176
msgid ""
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."
134180
msgstr ""
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
137187
msgid "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
141191
msgid ""
@@ -146,6 +196,12 @@ msgid ""
146196
"`PyExc_SystemError` if *anyset* is not a :class:`set`, :class:`frozenset`, "
147197
"or an instance of a subtype."
148198
msgstr ""
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
151207
msgid ""
@@ -157,12 +213,23 @@ msgid ""
157213
"grow. Raise a :exc:`SystemError` if *set* is not an instance of :class:"
158214
"`set` or its subtype."
159215
msgstr ""
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
162226
msgid ""
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."
165229
msgstr ""
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
168235
msgid ""
@@ -174,6 +241,13 @@ msgid ""
174241
"`PyExc_SystemError` if *set* is not an instance of :class:`set` or its "
175242
"subtype."
176243
msgstr ""
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
179253
msgid ""
@@ -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."
184258
msgstr ""
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
187265
msgid "Empty an existing set of all elements."

0 commit comments

Comments
 (0)