@@ -100,6 +100,9 @@ msgid ""
100
100
"`~Rational.denominator` properties, which should be in lowest terms. With "
101
101
"these, it provides a default for :func:`float`."
102
102
msgstr ""
103
+ "Estende :class:`Real` e adiciona as propriedades :attr:`~Rational.numerator` "
104
+ "e :attr:`~Rational.denominator`, que devem estar nos termos mais baixos. Com "
105
+ "eles, ele fornece um padrão para :func:`float`."
103
106
104
107
#: ../../library/numbers.rst:67 ../../library/numbers.rst:71
105
108
msgid "Abstract."
@@ -198,26 +201,37 @@ msgid ""
198
201
"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
199
202
"well."
200
203
msgstr ""
204
+ "Então, :meth:`__radd__` do ``B`` consegue uma chance. Se ele aceitar ``a``, "
205
+ "está tudo bem."
201
206
202
207
#: ../../library/numbers.rst:166
203
208
msgid ""
204
209
"If it falls back to the boilerplate, there are no more possible methods to "
205
210
"try, so this is where the default implementation should live."
206
211
msgstr ""
212
+ "Se ele recorrer ao padrão, não há mais métodos possíveis para tentar, então "
213
+ "é aqui que a implementação padrão deve residir."
207
214
208
215
#: ../../library/numbers.rst:169
209
216
msgid ""
210
217
"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
211
218
"because it was implemented with knowledge of ``A``, so it can handle those "
212
219
"instances before delegating to :class:`Complex`."
213
220
msgstr ""
221
+ "Se ``B <: A``, Python tenta ``B.__radd__`` antes de ``A.__add__``. Isso está "
222
+ "ok, porque foi implementado com conhecimento de ``A``, então ele pode lidar "
223
+ "com essas instâncias antes de delegar para :class:`Complex`."
214
224
215
225
#: ../../library/numbers.rst:174
216
226
msgid ""
217
227
"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
218
228
"then the appropriate shared operation is the one involving the built in :"
219
229
"class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``."
220
230
msgstr ""
231
+ "Se ``A <: Complex`` e ``B <: Real`` sem compartilhar nenhum outro "
232
+ "conhecimento, então a operação compartilhada apropriada é aquela envolvendo "
233
+ "a :class:`complex` embutida, e ambos :meth:`__radd__` s chegam lá, de forma "
234
+ "que ``a+b == b+a``."
221
235
222
236
#: ../../library/numbers.rst:179
223
237
msgid ""
@@ -226,3 +240,6 @@ msgid ""
226
240
"reverse instances of any given operator. For example, :class:`fractions."
227
241
"Fraction` uses::"
228
242
msgstr ""
243
+ "Como a maioria das operações em qualquer tipo será muito semelhante, pode "
244
+ "ser útil definir uma função auxiliar que gera as instâncias de avanço e "
245
+ "reversão de qualquer operador. Por exemplo, :class:`fractions.Fraction` usa::"
0 commit comments