8000 pomerge from 3.9 branch into 3.8 · python/python-docs-pt-br@5415aba · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

< 8000 div class="Overlay-actionWrap">

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5415aba

pomerge from 3.9 branch into 3.8
1 parent 23bc798 commit 5415aba

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

library/numbers.po

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ msgstr ""
2626

2727
#: ../../library/numbers.rst:2
2828
msgid ":mod:`numbers` --- Numeric abstract base classes"
29-
msgstr ""
29+
msgstr ":mod:`numbers` --- Classes base abstratas numéricas"
3030

3131
#: ../../library/numbers.rst:7
3232
msgid "**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)``."
4747
msgstr ""
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
5053
msgid "The numeric tower"
51-
msgstr ""
54+
msgstr "A torre numérica"
5255

5356
#: ../../library/numbers.rst:27
5457
msgid ""
@@ -61,36 +64,45 @@ msgstr ""
6164

6265
#: ../../library/numbers.rst:35
6366
msgid "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
6770
msgid "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
7174
msgid ""
7275
"Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() "
7376
"== (1-3j)``."
7477
msgstr ""
78+
"Abstrata. Retorna o conjugado complexo. Por exemplo, ``(1+3j).conjugate() == "
79+
"(1-3j)``."
7580

7681
#: ../../library/numbers.rst:48
7782
msgid ""
7883
"To :class:`Complex`, :class:`Real` adds the operations that work on real "
7984
"numbers."
8085
msgstr ""
86+
"Para :class:`Complex`, :class:`Real` adiciona as operações que funcionam em "
87+
"números reais."
8188

8289
#: ../../library/numbers.rst:51
8390
msgid ""
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 ``>=``."
8794
msgstr ""
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
90100
msgid ""
91101
"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :"
92102
"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
93103
msgstr ""
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
96108
msgid ""
@@ -101,7 +113,7 @@ msgstr ""
101113

102114
#: ../../library/numbers.rst:68 ../../library/numbers.rst:72
103115
msgid "Abstract."
104-
msgstr "Abstrato."
116+
msgstr "Abstrata."
105117

106118
#: ../../library/numbers.rst:77
107119
msgid ""
@@ -113,7 +125,7 @@ msgstr ""
113125

114126
#: ../../library/numbers.rst:84
115127
msgid "Notes for type implementors"
116-
msgstr ""
128+
msgstr "Nota para implementadores de tipos"
117129

118130
#: ../../library/numbers.rst:86
119131
msgid ""
@@ -122,21 +134,28 @@ msgid ""
122134
"the real numbers. For example, :class:`fractions.Fraction` implements :func:"
123135
"`hash` as follows::"
124136
msgstr ""
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
127143
msgid "Adding More Numeric ABCs"
128-
msgstr ""
144+
msgstr "Adicionando mais ABCs numéricas"
129145

130146
#: ../../library/numbers.rst:107
131147
msgid ""
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::"
135151
msgstr ""
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
138157
msgid "Implementing the arithmetic operations"
139-
msgstr ""
158+
msgstr "Implementando as operações aritméticas"
140159

141160
#: ../../library/numbers.rst:121
142161
msgid ""
@@ -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::"
148167
msgstr ""
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
151175
msgid ""
@@ -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``:"
157181
msgstr ""
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
160189
msgid "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
164193
msgid ""

0 commit comments

Comments
 (0)
0