4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Sheila Gomes <sheilagomes1@gmail.com>, 2021
8
7
# Rafael Fontenelle <rffontenelle@gmail.com>, 2023
9
8
#
10
9
#, fuzzy
11
10
msgid ""
12
11
msgstr ""
13
12
"Project-Id-Version : Python 3.12\n "
14
13
"Report-Msgid-Bugs-To : \n "
15
- "POT-Creation-Date : 2023-06-09 14:13+0000\n "
14
+ "POT-Creation-Date : 2023-12-22 14:13+0000\n "
16
15
"PO-Revision-Date : 2021-06-28 01:10+0000\n "
17
16
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n "
18
17
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -34,15 +33,11 @@ msgstr "**Código-fonte:** :source:`Lib/numbers.py`"
34
33
35
34
#: ../../library/numbers.rst:11
36
35
msgid ""
37
- "The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric :term :"
38
- "`abstract base classes <abstract base class>` which progressively define "
39
- "more operations. None of the types defined in this module are intended to "
40
- "be instantiated."
36
+ "The :mod:`! numbers` module (:pep:`3141`) defines a hierarchy of numeric :"
37
+ "term: `abstract base classes <abstract base class>` which progressively "
38
+ "define more operations. None of the types defined in this module are "
39
+ "intended to be instantiated."
41
40
msgstr ""
42
- "O módulo :mod:`numbers` (:pep:`3141`) define uma hierarquia de :term:"
43
- "`classes base abstratas <abstract base class>` que progressivamente definem "
44
- "mais operações. Nenhum dos tipos definidos neste módulo se destina a ser "
45
- "instanciado."
46
41
47
42
#: ../../library/numbers.rst:18
48
43
msgid ""
@@ -89,11 +84,9 @@ msgstr ""
89
84
90
85
#: ../../library/numbers.rst:48
91
86
msgid ""
92
- "To :class:`Complex`, :class:`Real` adds the operations that work on real "
87
+ "To :class:`Complex`, :class:`! Real` adds the operations that work on real "
93
88
"numbers."
94
89
msgstr ""
95
- "Para :class:`Complex`, :class:`Real` adiciona as operações que funcionam em "
96
- "números reais."
97
90
98
91
#: ../../library/numbers.rst:51
99
92
msgid ""
@@ -188,16 +181,11 @@ msgid ""
188
181
"We want to implement the arithmetic operations so that mixed-mode operations "
189
182
"either call an implementation whose author knew about the types of both "
190
183
"arguments, or convert both to the nearest built in type and do the operation "
191
- "there. For subtypes of :class:`Integral`, this means that :meth:`__add__` "
192
- "and :meth:`__radd__` should be defined as::"
184
+ "there. For subtypes of :class:`Integral`, this means that :meth:`~object. "
185
+ "__add__` and :meth:`~object. __radd__` should be defined as::"
193
186
msgstr ""
194
- "Queremos implementar as operações aritméticas de forma que as operações de "
195
- "modo misto chamem uma implementação cujo autor conhecia os tipos de ambos os "
196
- "argumentos ou convertam ambos para o tipo embutido mais próximo e façam a "
197
- "operação lá. Para subtipos de :class:`Integral`, isso significa que :meth:"
198
- "`__add__` e :meth:`__radd__` devem ser definidos com::"
199
187
200
- #: ../../library/numbers.rst:156
188
+ #: ../../library/numbers.rst:157
201
189
msgid ""
202
190
"There are 5 different cases for a mixed-type operation on subclasses of :"
203
191
"class:`Complex`. I'll refer to all of the above code that doesn't refer to "
@@ -211,41 +199,35 @@ msgstr ""
211
199
"instância de ``A``, que é um subtipo de :class:`Complex` (``a : A <: "
212
200
"Complex``) e ``b : B <: Complex``. Vou considerar ``a + b``:"
213
201
214
- #: ../../library/numbers.rst:163
215
- msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
216
- msgstr "Se ``A`` define um :meth:`__add__`, que aceita ``b``, está tudo bem."
202
+ #: ../../library/numbers.rst:164
203
+ msgid ""
204
+ "If ``A`` defines an :meth:`~object.__add__` which accepts ``b``, all is well."
205
10000
+ msgstr ""
217
206
218
- #: ../../library/numbers.rst:165
207
+ #: ../../library/numbers.rst:166
219
208
msgid ""
220
209
"If ``A`` falls back to the boilerplate code, and it were to return a value "
221
- "from :meth:`__add__`, we'd miss the possibility that ``B`` defines a more "
222
- "intelligent :meth:`__radd__`, so the boilerplate should return :const :"
223
- "`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement :meth :"
224
- "` __add__` at all.)"
210
+ "from :meth:`~object. __add__`, we'd miss the possibility that ``B`` defines a "
211
+ "more intelligent :meth:`~object. __radd__`, so the boilerplate should return :"
212
+ "const: `NotImplemented` from :meth:`! __add__`. (Or ``A`` may not implement :"
213
+ "meth:`! __add__` at all.)"
225
214
msgstr ""
226
- "Se ``A`` voltar ao código padrão e tivesse que retornar um valor de :meth:"
227
- "`__add__`, perderíamos a possibilidade de que ``B`` definisse um :meth:"
228
- "`__radd__` mais inteligente, então o código padrão deve retornar :const:"
229
- "`NotImplemented` de :meth:`__add__`. (Ou ``A`` pode não implementar :meth:"
230
- "`__add__`.)"
231
215
232
- #: ../../library/numbers.rst:171
216
+ #: ../../library/numbers.rst:172
233
217
msgid ""
234
- "Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
235
- "well."
218
+ "Then ``B``'s :meth:`~object. __radd__` gets a chance. If it accepts ``a``, "
219
+ "all is well."
236
220
msgstr ""
237
- "Então, :meth:`__radd__` do ``B`` consegue uma chance. Se ele aceitar ``a``, "
238
- "está tudo bem."
239
221
240
- #: ../../library/numbers.rst:173
222
+ #: ../../library/numbers.rst:174
241
223
msgid ""
242
224
"If it falls back to the boilerplate, there are no more possible methods to "
243
225
"try, so this is where the default implementation should live."
244
226
msgstr ""
245
227
"Se ele recorrer ao padrão, não há mais métodos possíveis para tentar, então "
246
228
"é aqui que a implementação padrão deve residir."
247
229
248
- #: ../../library/numbers.rst:176
230
+ #: ../../library/numbers.rst:177
249
231
msgid ""
250
232
"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
251
233
"because it was implemented with knowledge of ``A``, so it can handle those "
@@ -255,18 +237,15 @@ msgstr ""
255
237
"ok, porque foi implementado com conhecimento de ``A``, então ele pode lidar "
256
238
"com essas instâncias antes de delegar para :class:`Complex`."
257
239
258
- #: ../../library/numbers.rst:181
240
+ #: ../../library/numbers.rst:182
259
241
msgid ""
260
242
"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
261
243
"then the appropriate shared operation is the one involving the built in :"
262
- "class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``."
244
+ "class:`complex`, and both :meth:`~object.__radd__` s land there, so ``a+b == "
245
+ "b+a``."
263
246
msgstr ""
264
- "Se ``A <: Complex`` e ``B <: Real`` sem compartilhar nenhum outro "
265
- "conhecimento, então a operação compartilhada apropriada é aquela envolvendo "
266
- "a :class:`complex` embutida, e ambos :meth:`__radd__` s chegam lá, de forma "
267
- "que ``a+b == b+a``."
268
247
269
- #: ../../library/numbers.rst:186
248
+ #: ../../library/numbers.rst:187
270
249
msgid ""
271
250
"Because most of the operations on any given type will be very similar, it "
272
251
"can be useful to define a helper function which generates the forward and "
0 commit comments