Skip to content

Commit 405e785

Browse files
pomerge from 3.9 branch into 2.7
1 parent 1f3bdd8 commit 405e785

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

library/numbers.po

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msgstr ""
2020

2121
#: ../../library/numbers.rst:2
2222
msgid ":mod:`numbers` --- Numeric abstract base classes"
23-
msgstr ""
23+
msgstr ":mod:`numbers` --- Classes base abstratas numéricas"
2424

2525
#: ../../library/numbers.rst:10
2626
msgid ""
@@ -35,10 +35,13 @@ msgid ""
3535
"The root of the numeric hierarchy. If you just want to check if an argument "
3636
"*x* is a number, without caring what kind, use ``isinstance(x, Number)``."
3737
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)``."
3841

3942
#: ../../library/numbers.rst:22
4043
msgid "The numeric tower"
41-
msgstr ""
44+
msgstr "A torre numérica"
4245

4346
#: ../../library/numbers.rst:26
4447
msgid ""
@@ -51,36 +54,45 @@ msgstr ""
5154

5255
#: ../../library/numbers.rst:34
5356
msgid "Abstract. Retrieves the real component of this number."
54-
msgstr ""
57+
msgstr "Abstrata. Obtém o componente real deste número."
5558

5659
#: ../../library/numbers.rst:38
5760
msgid "Abstract. Retrieves the imaginary component of this number."
58-
msgstr ""
61+
msgstr "Abstrata. Obtém o componente imaginário deste número."
5962

6063
#: ../../library/numbers.rst:42
6164
msgid ""
6265
"Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() "
6366
"== (1-3j)``."
6467
msgstr ""
68+
"Abstrata. Retorna o conjugado complexo. Por exemplo, ``(1+3j).conjugate() == "
69+
"(1-3j)``."
6570

6671
#: ../../library/numbers.rst:47
6772
msgid ""
6873
"To :class:`Complex`, :class:`Real` adds the operations that work on real "
6974
"numbers."
7075
msgstr ""
76+
"Para :class:`Complex`, :class:`Real` adiciona as operações que funcionam em "
77+
"números reais."
7178

7279
#: ../../library/numbers.rst:50
7380
msgid ""
7481
"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :"
7582
"func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, "
7683
"``%``, ``<``, ``<=``, ``>``, and ``>=``."
7784
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 ``>=``."
7888

7989
#: ../../library/numbers.rst:54
8090
msgid ""
8191
"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :"
8292
"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
8393
msgstr ""
94+
"Real também fornece padrão para :func:`complex`, :attr:`~Complex.real`, :"
95+
"attr:`~Complex.imag` e :meth:`~Complex.conjugate`."
8496

8597
#: ../../library/numbers.rst:60
8698
msgid ""
@@ -103,7 +115,7 @@ msgstr ""
103115

104116
#: ../../library/numbers.rst:83
105117
msgid "Notes for type implementors"
106-
msgstr ""
118+
msgstr "Nota para implementadores de tipos"
107119

108120
#: ../../library/numbers.rst:85
109121
msgid ""
@@ -112,21 +124,28 @@ msgid ""
112124
"the real numbers. For example, :class:`fractions.Fraction` implements :func:"
113125
"`hash` as follows::"
114126
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::"
115131

116132
#: ../../library/numbers.rst:104
117133
msgid "Adding More Numeric ABCs"
118-
msgstr ""
134+
msgstr "Adicionando mais ABCs numéricas"
119135

120136
#: ../../library/numbers.rst:106
121137
msgid ""
122138
"There are, of course, more possible ABCs for numbers, and this would be a "
123139
"poor hierarchy if it precluded the possibility of adding those. You can add "
124140
"``MyFoo`` between :class:`Complex` and :class:`Real` with::"
125141
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::"
126145

127146
#: ../../library/numbers.rst:116
128147
msgid "Implementing the arithmetic operations"
129-
msgstr ""
148+
msgstr "Implementando as operações aritméticas"
130149

131150
#: ../../library/numbers.rst:118
132151
msgid ""
@@ -136,6 +155,11 @@ msgid ""
136155
"there. For subtypes of :class:`Integral`, this means that :meth:`__add__` "
137156
"and :meth:`__radd__` should be defined as::"
138157
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::"
139163

140164
#: ../../library/numbers.rst:149
141165
msgid ""
@@ -145,10 +169,15 @@ msgid ""
145169
"an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: "
146170
"Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
147171
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``:"
148177

149178
#: ../../library/numbers.rst:156
150179
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."
152181

153182
#: ../../library/numbers.rst:158
154183
msgid ""

0 commit comments

Comments
 (0)