@@ -26,7 +26,7 @@ msgstr ""
2626
2727#: ../../library/numbers.rst:2
2828msgid ":mod:`numbers` --- Numeric abstract base classes"
29- msgstr ""
29+ msgstr ":mod:`numbers` --- Classes base abstratas numéricas "
3030
3131#: ../../library/numbers.rst:7
3232msgid "**Source code:** :source:`Lib/numbers.py`"
@@ -45,10 +45,13 @@ msgid ""
4545"The root of the numeric hierarchy. If you just want to check if an argument "
4646"*x* is a number, without caring what kind, use ``isinstance(x, Number)``."
4747msgstr ""
48+ "A raiz da hierarquia numérica. Se você quiser apenas verificar se um "
49+ "argumento *x* é um número, sem se importar com o tipo, use ``isinstance(x, "
50+ "Number)``."
4851
4952#: ../../library/numbers.rst:23
5053msgid "The numeric tower"
51- msgstr ""
54+ msgstr "A torre numérica "
5255
5356#: ../../library/numbers.rst:27
5457msgid ""
@@ -61,36 +64,45 @@ msgstr ""
6164
6265#: ../../library/numbers.rst:35
6366msgid "Abstract. Retrieves the real component of this number."
64- msgstr ""
67+ msgstr "Abstrata. Obtém o componente real deste número. "
6568
6669#: ../../library/numbers.rst:39
6770msgid "Abstract. Retrieves the imaginary component of this number."
68- msgstr ""
71+ msgstr "Abstrata. Obtém o componente imaginário deste número. "
6972
7073#: ../../library/numbers.rst:43
7174msgid ""
7275"Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() "
7376"== (1-3j)``."
7477msgstr ""
78+ "Abstrata. Retorna o conjugado complexo. Por exemplo, ``(1+3j).conjugate() == "
79+ "(1-3j)``."
7580
7681#: ../../library/numbers.rst:48
7782msgid ""
7883"To :class:`Complex`, :class:`Real` adds the operations that work on real "
7984"numbers."
8085msgstr ""
86+ "Para :class:`Complex`, :class:`Real` adiciona as operações que funcionam em "
87+ "números reais."
8188
8289#: ../../library/numbers.rst:51
8390msgid ""
8491"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :"
8592"func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, "
8693"``%``, ``<``, ``<=``, ``>``, and ``>=``."
8794msgstr ""
95+ "Em suma, são: uma conversão para :class:`float`, :func:`math.trunc`, :func:"
96+ "`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``"
97+ "%``, ``<``, ``<=``, ``>`` e ``>=``."
8898
8999#: ../../library/numbers.rst:55
90100msgid ""
91101"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :"
92102"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
93103msgstr ""
104+ "Real também fornece padrão para :func:`complex`, :attr:`~Complex.real`, :"
105+ "attr:`~Complex.imag` e :meth:`~Complex.conjugate`."
94106
95107#: ../../library/numbers.rst:61
96108msgid ""
@@ -101,7 +113,7 @@ msgstr ""
101113
102114#: ../../library/numbers.rst:68 ../../library/numbers.rst:72
103115msgid "Abstract."
104- msgstr "Abstrato ."
116+ msgstr "Abstrata ."
105117
106118#: ../../library/numbers.rst:77
107119msgid ""
@@ -113,7 +125,7 @@ msgstr ""
113125
114126#: ../../library/numbers.rst:84
115127msgid "Notes for type implementors"
116- msgstr ""
128+ msgstr "Nota para implementadores de tipos "
117129
118130#: ../../library/numbers.rst:86
119131msgid ""
@@ -122,21 +134,28 @@ msgid ""
122134"the real numbers. For example, :class:`fractions.Fraction` implements :func:"
123135"`hash` as follows::"
124136msgstr ""
137+ "Os implementadores devem ter o cuidado de tornar iguais números iguais e "
138+ "fazer hash deles com os mesmos valores. Isso pode ser sutil se houver duas "
139+ "extensões diferentes dos números reais. Por exemplo, :class:`fractions."
140+ "Fraction` implementa :func:`hash` desta forma::"
125141
126142#: ../../library/numbers.rst:105
127143msgid "Adding More Numeric ABCs"
128- msgstr ""
144+ msgstr "Adicionando mais ABCs numéricas "
129145
130146#: ../../library/numbers.rst:107
131147msgid ""
132148"There are, of course, more possible ABCs for numbers, and this would be a "
133149"poor hierarchy if it precluded the possibility of adding those. You can add "
134150"``MyFoo`` between :class:`Complex` and :class:`Real` with::"
135151msgstr ""
152+ "Existem, é claro, mais ABCs possíveis para números, e isso seria uma "
153+ "hierarquia pobre se excluísse a possibilidade de adicioná-los. Você pode "
154+ "adicionar ``MyFoo`` entre :class:`Complex` e :class:`Real` com::"
136155
137156#: ../../library/numbers.rst:119
138157msgid "Implementing the arithmetic operations"
139- msgstr ""
158+ msgstr "Implementando as operações aritméticas "
140159
141160#: ../../library/numbers.rst:121
142161msgid ""
@@ -146,6 +165,11 @@ msgid ""
146165"there. For subtypes of :class:`Integral`, this means that :meth:`__add__` "
147166"and :meth:`__radd__` should be defined as::"
148167msgstr ""
168+ "Queremos implementar as operações aritméticas de forma que as operações de "
169+ "modo misto chamem uma implementação cujo autor conhecia os tipos de ambos os "
170+ "argumentos ou convertam ambos para o tipo embutido mais próximo e façam a "
171+ "operação lá. Para subtipos de :class:`Integral`, isso significa que :meth:"
172+ "`__add__` e :meth:`__radd__` devem ser definidos com::"
149173
150174#: ../../library/numbers.rst:152
151175msgid ""
@@ -155,10 +179,15 @@ msgid ""
155179"an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: "
156180"Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
157181msgstr ""
182+ "Existem 5 casos diferentes para uma operação de tipo misto em subclasses de :"
183+ "class:`Complex`. Vou me referir a todo o código acima que não se refere a "
184+ "``MyIntegral`` e ``OtherTypeIKnowAbout`` com um \" modelo\" . ``a`` será uma "
185+ "instância de ``A``, que é um subtipo de :class:`Complex` (``a : A <: "
186+ "Complex``) e ``b : B <: Complex``. Vou considerar ``a + b``:"
158187
159188#: ../../library/numbers.rst:159
160189msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
161- msgstr ""
190+ msgstr "Se ``A`` define um :meth:`__add__`, que aceita ``b``, tudo está bem. "
162191
163192#: ../../library/numbers.rst:161
164193msgid ""
0 commit comments