@@ -118,6 +118,9 @@ msgid ""
118118"`~Rational.denominator` properties, which should be in lowest terms. With "
119119"these, it provides a default for :func:`float`."
120120msgstr ""
121+ "Estende :class:`Real` e adiciona as propriedades :attr:`~Rational.numerator` "
122+ "e :attr:`~Rational.denominator`, que devem estar nos termos mais baixos. Com "
123+ "eles, ele fornece um padrão para :func:`float`."
121124
122125#: ../../library/numbers.rst:68 ../../library/numbers.rst:72
123126msgid "Abstract."
@@ -130,6 +133,11 @@ msgid ""
130133"`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus "
131134"and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``."
132135msgstr ""
136+ "Estende :class:`Rational` e adiciona uma conversão para :class:`int`. "
137+ "Fornece padrões para :func:`float`, :attr:`~Rational.numerator` e :attr:"
138+ "`~Rational.denominator`. Adiciona métodos abstratos para :func:`pow` com "
139+ "operações de módulo e de string de bits: ``<<``, ``>>``, ``&``, ``^``, ``|"
140+ "``, ``~``."
133141
134142#: ../../library/numbers.rst:85
135143msgid "Notes for type implementors"
@@ -195,7 +203,7 @@ msgstr ""
195203
196204#: ../../library/numbers.rst:160
197205msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
198- msgstr "Se ``A`` define um :meth:`__add__`, que aceita ``b``, tudo está bem."
206+ msgstr "Se ``A`` define um :meth:`__add__`, que aceita ``b``, está tudo bem."
199207
200208#: ../../library/numbers.rst:162
201209msgid ""
@@ -216,26 +224,37 @@ msgid ""
216224"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
217225"well."
218226msgstr ""
227+ "Então, :meth:`__radd__` do ``B`` consegue uma chance. Se ele aceitar ``a``, "
228+ "está tudo bem."
219229
220230#: ../../library/numbers.rst:170
221231msgid ""
222232"If it falls back to the boilerplate, there are no more possible methods to "
223233"try, so this is where the default implementation should live."
224234msgstr ""
235+ "Se ele recorrer ao padrão, não há mais métodos possíveis para tentar, então "
236+ "é aqui que a implementação padrão deve residir."
225237
226238#: ../../library/numbers.rst:173
227239msgid ""
228240"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
229241"because it was implemented with knowledge of ``A``, so it can handle those "
230242"instances before delegating to :class:`Complex`."
231243msgstr ""
244+ "Se ``B <: A``, Python tenta ``B.__radd__`` antes de ``A.__add__``. Isso está "
245+ "ok, porque foi implementado com conhecimento de ``A``, então ele pode lidar "
246+ "com essas instâncias antes de delegar para :class:`Complex`."
232247
233248#: ../../library/numbers.rst:178
234249msgid ""
235250"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
236251"then the appropriate shared operation is the one involving the built in :"
237252"class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``."
238253msgstr ""
254+ "Se ``A <: Complex`` e ``B <: Real`` sem compartilhar nenhum outro "
255+ "conhecimento, então a operação compartilhada apropriada é aquela envolvendo "
256+ "a :class:`complex` embutida, e ambos :meth:`__radd__` s chegam lá, de forma "
257+ "que ``a+b == b+a``."
239258
240259#: ../../library/numbers.rst:183
241260msgid ""
@@ -244,3 +263,6 @@ msgid ""
244263"reverse instances of any given operator. For example, :class:`fractions."
245264"Fraction` uses::"
246265msgstr ""
266+ "Como a maioria das operações em qualquer tipo será muito semelhante, pode "
267+ "ser útil definir uma função auxiliar que gera as instâncias de avanço e "
268+ "reversão de qualquer operador. Por exemplo, :class:`fractions.Fraction` usa::"
0 commit comments