@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.11\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2025-01-10 15:26 +0000\n "
14
+ "POT-Creation-Date : 2025-04-25 15:29 +0000\n "
15
15
"PO-Revision-Date : 2023-05-24 02:19+0000\n "
16
16
"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
17
17
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -63,27 +63,40 @@ msgid ""
63
63
"repr` function described below. Changing the attributes of this object will "
64
64
"affect the size limits used by :func:`.repr` and the Python debugger."
65
65
msgstr ""
66
+ "Esta é uma instância de :class:`Repr` que é usada para fornecer a função :"
67
+ "func:`.repr` descrita abaixo. Alterar os atributos deste objeto afetará os "
68
+ "limites de tamanho usados por :func:`.repr` e pelo depurador Python."
66
69
67
70
#: ../../library/reprlib.rst:37
68
71
msgid ""
69
72
"This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string "
70
73
"similar to that returned by the built-in function of the same name, but with "
71
74
"limits on most sizes."
72
75
msgstr ""
76
+ "Este é o método :meth:`~Repr.repr` de ``aRepr``. Ele retorna uma string "
77
+ "semelhante à retornada pela função embutida de mesmo nome, mas com limites "
78
+ "na maioria dos tamanhos."
73
79
74
80
#: ../../library/reprlib.rst:41
75
81
msgid ""
76
82
"In addition to size-limiting tools, the module also provides a decorator for "
77
83
"detecting recursive calls to :meth:`~object.__repr__` and substituting a "
78
84
"placeholder string instead."
79
85
msgstr ""
86
+ "Além das ferramentas de limitação de tamanho, o módulo também fornece um "
87
+ "decorador para detectar chamadas recursivas para :meth:`~object.__repr__` e "
88
+ "substituir uma string de espaço reservado."
80
89
81
90
#: ../../library/reprlib.rst:50
82
91
msgid ""
83
92
"Decorator for :meth:`~object.__repr__` methods to detect recursive calls "
84
93
"within the same thread. If a recursive call is made, the *fillvalue* is "
85
94
"returned, otherwise, the usual :meth:`!__repr__` call is made. For example:"
86
95
msgstr ""
96
+ "Decorador para métodos :meth:`~object.__repr__` para detectar chamadas "
97
+ "recursivas dentro da mesma thread. Se uma chamada recursiva for feita, o "
98
+ "*fillvalue* é retornado; caso contrário, a chamada usual :meth:`!__repr__` é "
99
+ "feita. Por exemplo:"
87
100
88
101
#: ../../library/reprlib.rst:74
89
102
msgid "Repr Objects"
@@ -95,30 +108,40 @@ msgid ""
95
108
"provide size limits for the representations of different object types, and "
96
109
"methods which format specific object types."
97
110
msgstr ""
111
+ "Instâncias :class:`Repr` fornecem vários atributos que podem ser usados para "
112
+ "fornecer limites de tamanho para as representações de diferentes tipos de "
113
+ "objetos e métodos que formatam tipos de objetos específicos."
98
114
99
115
#: ../../library/reprlib.rst:83
100
116
msgid ""
101
117
"This string is displayed for recursive references. It defaults to ``...``."
102
- msgstr ""
118
+ msgstr "Esta string é exibida para referências recursivas. O padrão é ``...``. "
103
119
104
120
#: ../../library/reprlib.rst:91
105
121
msgid ""
106
122
"Depth limit on the creation of recursive representations. The default is "
107
123
"``6``."
108
124
msgstr ""
125
+ "Limite de profundidade na criação de representações recursivas. O padrão é "
126
+ "``6``."
109
127
110
128
#: ../../library/reprlib.rst:102
111
129
msgid ""
112
130
"Limits on the number of entries represented for the named object type. The "
113
131
"default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` "
114
132
"for the others."
115
133
msgstr ""
134
+ "Limites no número de entradas representadas para o tipo de objeto nomeado. O "
135
+ "padrão é ``4`` para :attr:`maxdict`, ``5`` para :attr:`maxarray` e ``6`` "
136
+ "para os demais."
116
137
117
138
#: ../../library/reprlib.rst:109
118
139
msgid ""
119
140
"Maximum number of characters in the representation for an integer. Digits "
120
141
"are dropped from the middle. The default is ``40``."
121
142
msgstr ""
143
+ "Número máximo de caracteres na representação para um inteiro. Os dígitos são "
144
+ "omitidos a partir do meio. O padrão é ``40``."
122
145
123
146
#: ../../library/reprlib.rst:115
124
147
msgid ""
@@ -127,19 +150,29 @@ msgid ""
127
150
"source: if escape sequences are needed in the representation, these may be "
128
151
"mangled when the representation is shortened. The default is ``30``."
129
152
msgstr ""
153
+ "Limite no número de caracteres na representação da string. Observe que a "
154
+ "representação \" normal\" da string é usada como fonte de caracteres: se "
155
+ "sequências de escape forem necessárias na representação, elas poderão ser "
156
+ "distorcidas quando a representação for encurtada. O padrão é ``30``."
130
157
131
158
#: ../../library/reprlib.rst:123
132
159
msgid ""
133
160
"This limit is used to control the size of object types for which no specific "
134
161
"formatting method is available on the :class:`Repr` object. It is applied in "
135
162
"a similar manner as :attr:`maxstring`. The default is ``20``."
136
163
msgstr ""
164
+ "Este limite é usado para controlar o tamanho de tipos de objetos para os "
165
+ "quais nenhum método de formatação específico está disponível no objeto :"
166
+ "class:`Repr`. Ele é aplicado de maneira semelhante a :attr:`maxstring`. O "
167
+ "padrão é ``20``."
137
168
138
169
#: ../../library/reprlib.rst:130
139
170
msgid ""
140
171
"The equivalent to the built-in :func:`repr` that uses the formatting imposed "
141
172
"by the instance."
142
173
msgstr ""
174
+ "O equivalente ao :func:`repr` embutido que usa a formatação imposta pela "
175
+ "instância."
143
176
144
177
#: ../../library/reprlib.rst:136
145
178
msgid ""
@@ -149,6 +182,11 @@ msgid ""
149
182
"formatting, with ``level - 1`` for the value of *level* in the recursive "
150
183
"call."
151
184
msgstr ""
185
+ "Implementação recursiva usada por :meth:`.repr`. Esta usa o tipo de *obj* "
186
+ "para determinar qual método de formatação chamar, passando *obj* e *level*. "
187
+ "Os métodos específicos de tipo devem chamar :meth:`repr1` para realizar a "
188
+ "formatação recursiva, com ``level - 1`` para o valor de *level* na chamada "
189
+ "recursiva."
152
190
153
191
#: ../../library/reprlib.rst:145
154
192
msgid ""
@@ -158,10 +196,16 @@ msgid ""
158
196
"meth:`repr1`. Type-specific methods which need to recursively format a value "
159
197
"should call ``self.repr1(subobj, level - 1)``."
160
198
msgstr ""
199
+ "Métodos de formatação para tipos específicos são implementados como métodos "
200
+ "com um nome baseado no nome do tipo. No nome do método, **TYPE** é "
201
+ "substituído por ``'_'.join(type(obj).__name__.split())``. O despacho para "
202
+ "esses métodos é tratado por :meth:`repr1`. Métodos específicos de tipo que "
203
+ "precisam formatar um valor recursivamente devem chamar ``self.repr1(subobj, "
204
+ "level - 1)``."
161
205
162
206
#: ../../library/reprlib.rst:155
163
207
msgid "Subclassing Repr Objects"
164
- msgstr ""
208
+ msgstr "Estendendo objetos Repr "
165
209
166
210
#: ../../library/reprlib.rst:157
167
211
msgid ""
@@ -170,6 +214,10 @@ msgid ""
170
214
"modify the handling of types already supported. This example shows how "
171
215
"special support for file objects could be added:"
172
216
msgstr ""
217
+ "O uso de despacho dinâmico por :meth:`Repr.repr1` permite que subclasses de :"
218
+ "class:`Repr` adicionem suporte para tipos de objetos embutidos adicionais ou "
219
+ "modifiquem o tratamento de tipos já suportados. Este exemplo mostra como "
220
+ "suporte especial para objetos arquivo pode ser adicionado:"
173
221
174
222
#: ../../library/reprlib.rst:46
175
223
msgid "..."
0 commit comments