44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Sheila Gomes <sheilagomes1@gmail.com>, 2021
87# Rafael Fontenelle <rffontenelle@gmail.com>, 2023
98#
109#, fuzzy
1110msgid ""
1211msgstr ""
1312"Project-Id-Version : Python 3.12\n "
1413"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 "
1615"PO-Revision-Date : 2021-06-28 01:10+0000\n "
1716"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n "
1817"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -34,15 +33,11 @@ msgstr "**Código-fonte:** :source:`Lib/numbers.py`"
3433
3534#: ../../library/numbers.rst:11
3635msgid ""
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."
4140msgstr ""
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."
4641
4742#: ../../library/numbers.rst:18
4843msgid ""
@@ -89,11 +84,9 @@ msgstr ""
8984
9085#: ../../library/numbers.rst:48
9186msgid ""
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 "
9388"numbers."
9489msgstr ""
95- "Para :class:`Complex`, :class:`Real` adiciona as operações que funcionam em "
96- "números reais."
9790
9891#: ../../library/numbers.rst:51
9992msgid ""
@@ -188,16 +181,11 @@ msgid ""
188181"We want to implement the arithmetic operations so that mixed-mode operations "
189182"either call an implementation whose author knew about the types of both "
190183"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::"
193186msgstr ""
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::"
199187
200- #: ../../library/numbers.rst:156
188+ #: ../../library/numbers.rst:157
201189msgid ""
202190"There are 5 different cases for a mixed-type operation on subclasses of :"
203191"class:`Complex`. I'll refer to all of the above code that doesn't refer to "
@@ -211,41 +199,35 @@ msgstr ""
211199"instância de ``A``, que é um subtipo de :class:`Complex` (``a : A <: "
212200"Complex``) e ``b : B <: Complex``. Vou considerar ``a + b``:"
213201
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+ msgstr ""
217206
218- #: ../../library/numbers.rst:165
207+ #: ../../library/numbers.rst:166
219208msgid ""
220209"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.)"
225214msgstr ""
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__`.)"
231215
232- #: ../../library/numbers.rst:171
216+ #: ../../library/numbers.rst:172
233217msgid ""
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."
236220msgstr ""
237- "Então, :meth:`__radd__` do ``B`` consegue uma chance. Se ele aceitar ``a``, "
238- "está tudo bem."
239221
240- #: ../../library/numbers.rst:173
222+ #: ../../library/numbers.rst:174
241223msgid ""
242224"If it falls back to the boilerplate, there are no more possible methods to "
243225"try, so this is where the default implementation should live."
244226msgstr ""
245227"Se ele recorrer ao padrão, não há mais métodos possíveis para tentar, então "
246228"é aqui que a implementação padrão deve residir."
247229
248- #: ../../library/numbers.rst:176
230+ #: ../../library/numbers.rst:177
249231msgid ""
250232"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
251233"because it was implemented with knowledge of ``A``, so it can handle those "
@@ -255,18 +237,15 @@ msgstr ""
255237"ok, porque foi implementado com conhecimento de ``A``, então ele pode lidar "
256238"com essas instâncias antes de delegar para :class:`Complex`."
257239
258- #: ../../library/numbers.rst:181
240+ #: ../../library/numbers.rst:182
259241msgid ""
260242"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
261243"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``."
263246msgstr ""
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``."
268247
269- #: ../../library/numbers.rst:186
248+ #: ../../library/numbers.rst:187
270249msgid ""
271250"Because most of the operations on any given type will be very similar, it "
272251"can be useful to define a helper function which generates the forward and "
0 commit comments