@@ -20,7 +20,7 @@ msgstr ""
20
20
21
21
#: ../../library/numbers.rst:2
22
22
msgid ":mod:`numbers` --- Numeric abstract base classes"
23
- msgstr ""
23
+ msgstr ":mod:`numbers` --- Classes base abstratas numéricas "
24
24
25
25
#: ../../library/numbers.rst:10
26
26
msgid ""
@@ -35,10 +35,13 @@ msgid ""
35
35
"The root of the numeric hierarchy. If you just want to check if an argument "
36
36
"*x* is a number, without caring what kind, use ``isinstance(x, Number)``."
37
37
msgstr ""
38
+ "A raiz da hierarquia numérica. Se você quiser apenas verificar se um "
39
+ "argumento *x* é um número, sem se importar com o tipo, use ``isinstance(x, "
40
+ "Number)``."
38
41
39
42
#: ../../library/numbers.rst:22
40
43
msgid "The numeric tower"
41
- msgstr ""
44
+ msgstr "A torre numérica "
42
45
43
46
#: ../../library/numbers.rst:26
44
47
msgid ""
@@ -51,36 +54,45 @@ msgstr ""
51
54
52
55
#: ../../library/numbers.rst:34
53
56
msgid "Abstract. Retrieves the real component of this number."
54
- msgstr ""
57
+ msgstr "Abstrata. Obtém o componente real deste número. "
55
58
56
59
#: ../../library/numbers.rst:38
57
60
msgid "Abstract. Retrieves the imaginary component of this number."
58
- msgstr ""
61
+ msgstr "Abstrata. Obtém o componente imaginário deste número. "
59
62
60
63
#: ../../library/numbers.rst:42
61
64
msgid ""
62
65
"Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() "
63
66
"== (1-3j)``."
64
67
msgstr ""
68
+ "Abstrata. Retorna o conjugado complexo. Por exemplo, ``(1+3j).conjugate() == "
69
+ "(1-3j)``."
65
70
66
71
#: ../../library/numbers.rst:47
67
72
msgid ""
68
73
"To :class:`Complex`, :class:`Real` adds the operations that work on real "
69
74
"numbers."
70
75
msgstr ""
76
+ "Para :class:`Complex`, :class:`Real` adiciona as operações que funcionam em "
77
+ "números reais."
71
78
72
79
#: ../../library/numbers.rst:50
73
80
msgid ""
74
81
"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :"
75
82
"func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, "
76
83
"``%``, ``<``, ``<=``, ``>``, and ``>=``."
77
84
msgstr ""
85
+ "Em suma, são: uma conversão para :class:`float`, :func:`math.trunc`, :func:"
86
+ "`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``"
87
+ "%``, ``<``, ``<=``, ``>`` e ``>=``."
78
88
79
89
#: ../../library/numbers.rst:54
80
90
msgid ""
81
91
"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :"
82
92
"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
83
93
msgstr ""
94
+ "Real também fornece padrão para :func:`complex`, :attr:`~Complex.real`, :"
95
+ "attr:`~Complex.imag` e :meth:`~Complex.conjugate`."
84
96
85
97
#: ../../library/numbers.rst:60
86
98
msgid ""
@@ -103,7 +115,7 @@ msgstr ""
103
115
104
116
#: ../../library/numbers.rst:83
105
117
msgid "Notes for type implementors"
106
- msgstr ""
118
+ msgstr "Nota para implementadores de tipos "
107
119
108
120
#: ../../library/numbers.rst:85
109
121
msgid ""
@@ -112,21 +124,28 @@ msgid ""
112
124
"the real numbers. For example, :class:`fractions.Fraction` implements :func:"
113
125
"`hash` as follows::"
114
126
msgstr ""
127
+ "Os implementadores devem ter o cuidado de tornar iguais números iguais e "
128
+ "fazer hash deles com os mesmos valores. Isso pode ser sutil se houver duas "
129
+ "extensões diferentes dos números reais. Por exemplo, :class:`fractions."
130
+ "Fraction` implementa :func:`hash` desta forma::"
115
131
116
132
#: ../../library/numbers.rst:104
117
133
msgid "Adding More Numeric ABCs"
118
- msgstr ""
134
+ msgstr "Adicionando mais ABCs numéricas "
119
135
120
136
#: ../../library/numbers.rst:106
121
137
msgid ""
122
138
"There are, of course, more possible ABCs for numbers, and this would be a "
123
139
"poor hierarchy if it precluded the possibility of adding those. You can add "
124
140
"``MyFoo`` between :class:`Complex` and :class:`Real` with::"
125
141
msgstr ""
142
+ "Existem, é claro, mais ABCs possíveis para números, e isso seria uma "
143
+ "hierarquia pobre se excluísse a possibilidade de adicioná-los. Você pode "
144
+ "adicionar ``MyFoo`` entre :class:`Complex` e :class:`Real` com::"
126
145
127
146
#: ../../library/numbers.rst:116
128
147
msgid "Implementing the arithmetic operations"
129
- msgstr ""
148
+ msgstr "Implementando as operações aritméticas "
130
149
131
150
#: ../../library/numbers.rst:118
132
151
msgid ""
@@ -136,6 +155,11 @@ msgid ""
136
155
"there. For subtypes of :class:`Integral`, this means that :meth:`__add__` "
137
156
"and :meth:`__radd__` should be defined as::"
138
157
msgstr ""
158
+ "Queremos implementar as operações aritméticas de forma que as operações de "
159
+ "modo misto chamem uma implementação cujo autor conhecia os tipos de ambos os "
160
+ "argumentos ou convertam ambos para o tipo embutido mais próximo e façam a "
161
+ "operação lá. Para subtipos de :class:`Integral`, isso significa que :meth:"
162
+ "`__add__` e :meth:`__radd__` devem ser definidos com::"
139
163
140
164
#: ../../library/numbers.rst:149
141
165
msgid ""
@@ -145,10 +169,15 @@ msgid ""
145
169
"an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: "
146
170
"Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
147
171
msgstr ""
172
+ "Existem 5 casos diferentes para uma operação de tipo misto em subclasses de :"
173
+ "class:`Complex`. Vou me referir a todo o código acima que não se refere a "
174
+ "``MyIntegral`` e ``OtherTypeIKnowAbout`` com um \" modelo\" . ``a`` será uma "
175
+ "instância de ``A``, que é um subtipo de :class:`Complex` (``a : A <: "
176
+ "Complex``) e ``b : B <: Complex``. Vou considerar ``a + b``:"
148
177
149
178
#: ../../library/numbers.rst:156
150
179
msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
151
- msgstr ""
180
+ msgstr "Se ``A`` define um :meth:`__add__`, que aceita ``b``, tudo está bem. "
152
181
153
182
#: ../../library/numbers.rst:158
154
183
msgid ""
0 commit comments