11# Copyright (C) 2001-2020, Python Software Foundation
22# This file is distributed under the same license as the Python package.
3- # Maintained by the python-doc-es workteam.
3+ # Maintained by the python-doc-es workteam.
44# docs-es@python.org / https://mail.python.org/mailman3/lists/docs-es.python.org/
55# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
66#
7- #, fuzzy
87msgid ""
98msgstr ""
109"Project-Id-Version :Python 3.8\n "
1110"Report-Msgid-Bugs-To :\n "
1211"POT-Creation-Date :2019-05-06 11:59-0400\n "
13- "PO-Revision-Date :YEAR-MO-DA HO:MI+ZONE\n "
14- "Last-Translator :FULL NAME <EMAIL@ADDRESS>\n "
12+ "PO-Revision-Date :2020-05-16 18:08-0500\n "
1513"Language-Team :python-doc-es\n "
1614"MIME-Version :1.0\n "
1715"Content-Type :text/plain; charset=UTF-8\n "
1816"Content-Transfer-Encoding :8bit\n "
17+ "Plural-Forms :nplurals=2; plural=(n != 1);\n "
18+ "Last-Translator :Jhonatan Barrera <iam3mer@gmail.com>\n "
19+ "Language :es\n "
20+ "X-Generator :Poedit 2.3.1\n "
1921
2022#: ../Doc/library/numbers.rst:2
2123msgid ":mod:`numbers` --- Numeric abstract base classes"
22- msgstr ""
24+ msgstr ":mod:`numbers` --- Clase base abstracta numérica "
2325
2426#: ../Doc/library/numbers.rst:7
2527msgid "**Source code:** :source:`Lib/numbers.py`"
26- msgstr ""
28+ msgstr "**Código fuente:** :source:`Lib/numbers.py` "
2729
30+ # revisar como usamos "abstract base classes" en el glosario
2831#: ../Doc/library/numbers.rst:11
32+ #, fuzzy
2933msgid ""
3034"The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:"
3135"`abstract base classes <abstract base class>` which progressively define "
3236"more operations. None of the types defined in this module can be "
3337"instantiated."
3438msgstr ""
39+ "El módulo :mod:`numbers` (:pep:`3141`) define una jerarquía numérica :term:"
40+ "`abstract base classes <abstract base class>` que define progresivamente más "
41+ "operaciones. No se puede crear una instancia de ninguno de los tipos "
42+ "definidos en este módulo."
3543
3644#: ../Doc/library/numbers.rst:18
3745msgid ""
3846"The root of the numeric hierarchy. If you just want to check if an argument "
3947"*x* is a number, without caring what kind, use ``isinstance(x, Number)``."
4048msgstr ""
49+ "La raíz de la jerarquía numérica. Si desea validar si un argumento *x* es un "
50+ "número, sin importar su tipo, use ``isinstance(x, Number)``."
4151
52+ # La verdad no se si sea buena esta traducción
4253#: ../Doc/library/numbers.rst:23
54+ #, fuzzy
4355msgid "The numeric tower"
44- msgstr ""
56+ msgstr "La torre numérica "
4557
4658#: ../Doc/library/numbers.rst:27
4759msgid ""
@@ -51,50 +63,69 @@ msgid ""
5163"``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All "
5264"except ``-`` and ``!=`` are abstract."
5365msgstr ""
66+ "Las subclases de este tipo describen números complejos e incluyen las "
67+ "operaciones integradas del tipo :class:`complex`. Estas son: conversiones a :"
68+ "class:`complex` y :class:`bool`, :attr:`.real`, :attr:`..imag`, ``+``, ``-"
69+ "``, ``*`, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, y ``!=``. Todos "
70+ "excepto ``-`` y ``!=`` estos son abstractos."
5471
5572#: ../Doc/library/numbers.rst:35
5673msgid "Abstract. Retrieves the real component of this number."
57- msgstr ""
74+ msgstr "Abstracto. Recupera el componente real de este número. "
5875
5976#: ../Doc/library/numbers.rst:39
6077msgid "Abstract. Retrieves the imaginary component of this number."
61- msgstr ""
78+ msgstr "Abstracto. Recupera el componente imaginario de este número. "
6279
6380#: ../Doc/library/numbers.rst:43
6481msgid ""
6582"Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() "
6683"== (1-3j)``."
6784msgstr ""
85+ "Abstracto. Retorna el complejo conjugado. Por ejemplo, ``(1+3j).conjugate() "
86+ "== (1-3j)``."
6887
6988#: ../Doc/library/numbers.rst:48
7089msgid ""
7190"To :class:`Complex`, :class:`Real` adds the operations that work on real "
7291"numbers."
7392msgstr ""
93+ "Para :class:`Complex`, :class:`Real` agrega las operaciones que trabajan con "
94+ "números reales."
7495
7596#: ../Doc/library/numbers.rst:51
7697msgid ""
7798"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :"
7899"func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, "
79100"``%``, ``<``, ``<=``, ``>``, and ``>=``."
80101msgstr ""
102+ "En resumen, estos son: conversiones a :class:`float`, :func:`math.trunc`, :"
103+ "func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, "
104+ "``%``, ``<``, ``<=``, ``>``, y ``>=``."
81105
82106#: ../Doc/library/numbers.rst:55
83107msgid ""
84108"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :"
85109"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
86110msgstr ""
111+ "*Real* también proporciona valores predeterminados para :func:`complex`, :"
112+ "attr:`~Complex.real`, :attr:`~Complex.imag`, y :meth:`~Complex.conjugate`."
87113
114+ # Se me hace super rara toda la cadena. Agrego "Subtypes" como "Hereda"
88115#: ../Doc/library/numbers.rst:61
116+ #, fuzzy
89117msgid ""
90118"Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and :attr:"
91119"`~Rational.denominator` properties, which should be in lowest terms. With "
92120"these, it provides a default for :func:`float`."
93121msgstr ""
122+ "Hereda de :class:`Real` y agrega las propiedades :attr:`~Rational.numerator` "
123+ "y :attr:`~Rational.denominator`, que deberían estar en los términos más "
124+ "bajos. Con esto, se proporciona un valor predeterminado a :func:`float`."
94125
95126#: ../Doc/library/numbers.rst:68 ../Doc/library/numbers.rst:72
96127msgid "Abstract."
97- msgstr ""
128+ msgstr "Abstracto. "
98129
99130#: ../Doc/library/numbers.rst:77
100131msgid ""
@@ -103,33 +134,47 @@ msgid ""
103134"`~Rational.denominator`. Adds abstract methods for ``**`` and bit-string "
104135"operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``."
105136msgstr ""
137+ "Hereda :class:`Rational` y agrega conversión a :class:`int`. Proporciona "
138+ "valores predeterminados para :func:`float`, :attr:`~Rational.numerator`, y :"
139+ "attr:`~Rational.denominator`. Agreda métodos abstractos para operaciones "
140+ "``**`` y operaciones de cadena de bits: ``<<``, ``>>``, ``&``, ``^``, ``|``, "
141+ "``~``."
106142
107143#: ../Doc/library/numbers.rst:84
108144msgid "Notes for type implementors"
109- msgstr ""
145+ msgstr "Notas para implementadores de tipos "
110146
147+ # Por aca tengo problemas con esta fracción de la cadena: Implementors should be careful to make equal numbers equal and hash them to the same values
111148#: ../Doc/library/numbers.rst:86
149+ #, fuzzy
112150msgid ""
113151"Implementors should be careful to make equal numbers equal and hash them to "
114152"the same values. This may be subtle if there are two different extensions of "
115153"the real numbers. For example, :class:`fractions.Fraction` implements :func:"
116154"`hash` as follows::"
117155msgstr ""
156+ "Los implementadores deben tener cuidado de hacer que números iguales sean "
157+ "iguales y hacer *hash* con los mismos valores. Esto puede ser sutil si hay "
158+ "dos extensiones diferentes de los números reales. Por ejemplo: :class:"
159+ "`fractions.Fraction` implementa :func:`hash` de la siguiente manera::"
118160
119161#: ../Doc/library/numbers.rst:105
120162msgid "Adding More Numeric ABCs"
121- msgstr ""
163+ msgstr "Agregar más *ABCs* numéricos "
122164
123165#: ../Doc/library/numbers.rst:107
124166msgid ""
125167"There are, of course, more possible ABCs for numbers, and this would be a "
126168"poor hierarchy if it precluded the possibility of adding those. You can add "
127169"``MyFoo`` between :class:`Complex` and :class:`Real` with::"
128170msgstr ""
171+ "Por supuesto, hay más *ABCs* posibles para los números, y esto sería una "
172+ "jerarquía deficiente si se excluye la posibilidad de añadirlos. Puede usar "
173+ "``MyFoo`` entre :class:`Complex` y :class:`Real` así::"
129174
130175#: ../Doc/library/numbers.rst:119
131176msgid "Implementing the arithmetic operations"
132- msgstr ""
177+ msgstr "Implementar operaciones aritméticas "
133178
134179#: ../Doc/library/numbers.rst:121
135180msgid ""
@@ -140,18 +185,25 @@ msgid ""
140185"and :meth:`__radd__` should be defined as::"
141186msgstr ""
142187
188+ # boilerplate -> repetitivo --revisar en todo el archivo
143189#: ../Doc/library/numbers.rst:152
190+ #, fuzzy
144191msgid ""
145192"There are 5 different cases for a mixed-type operation on subclasses of :"
146193"class:`Complex`. I'll refer to all of the above code that doesn't refer to "
147194"``MyIntegral`` and ``OtherTypeIKnowAbout`` as\" boilerplate\" . ``a`` will be "
148195"an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: "
149196"Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
150197msgstr ""
198+ "Hay 5 casos diferentes para una operación de tipo mixto en subclases de :"
199+ "class:`Complex`. Me referiré a todo el código anterior que no se refiere a "
200+ "``MyIntegral`` y ``OtherTypeIKnowAbout` como\" repetitivo\" . ``a`` será una "
201+ "instancia de ``A``, que es un subtipo de :class:`Complex` (``a: A <: "
202+ "Complex`), y ``b : B <: Complex``. Consideraré ``a + b``:"
151203
152204#: ../Doc/library/numbers.rst:159
153205msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
154- msgstr ""
206+ msgstr "Si ``A`` define un :meth:`__add__` que acepta ``b``, todo está bien. "
155207
156208#: ../Doc/library/numbers.rst:161
157209msgid ""
@@ -161,32 +213,48 @@ msgid ""
161213"`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement :meth:"
162214"`__add__` at all.)"
163215msgstr ""
216+ "Si ``A`` recurre al código repetitivo y devuelve un valor de :meth:"
217+ "`__add__`, perderíamos la posibilidad de que B defina un :meth:`__radd __` "
218+ "más inteligente, por lo que el código repetitivo debería devolver :const:"
219+ "`NotImplemented` de :meth:`__add__`. (O ``A`` no puede implementar :meth:"
220+ "`__add__` en absoluto.)"
164221
165222#: ../Doc/library/numbers.rst:167
166223msgid ""
167224"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
168225"well."
169226msgstr ""
227+ "Entonces ``B``'s :meth:`__radd__` tiene una oportunidad. Si acepta ``a``, "
228+ "todo esta bien."
170229
171230#: ../Doc/library/numbers.rst:169
172231msgid ""
173232"If it falls back to the boilerplate, there are no more possible methods to "
174233"try, so this is where the default implementation should live."
175234msgstr ""
235+ "Si se vuelve a caer en el código repetitivo, no hay más posibles métodos "
236+ "para probar, por lo que acá debería vivir la implementación predeterminada."
176237
177238#: ../Doc/library/numbers.rst:172
178239msgid ""
179240"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
180241"because it was implemented with knowledge of ``A``, so it can handle those "
181242"instances before delegating to :class:`Complex`."
182243msgstr ""
244+ "Si ``B <: A``, Python probara ``B.__radd__`` antes que ``A.__add__``. Esto "
245+ "está bien, porque se implementó con conocimiento de ``A``, por lo que puede "
246+ "manejar instancias antes de delegar un :class:`Complex`."
183247
184248#: ../Doc/library/numbers.rst:177
185249msgid ""
186250"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
187251"then the appropriate shared operation is the one involving the built in :"
188252"class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``."
189253msgstr ""
254+ "Si ``A <: Complex`` y ``B <: Real`` sin compartir ningún otro conocimiento,"
255+ "la operación compartida apropiada es la que involucra la clase :class:"
256+ "`complex` incorporada, y ambos :meth:`__radd__` desencadenan allí, entonces "
257+ "``a+b == b+a``."
190258
191259#: ../Doc/library/numbers.rst:182
192260msgid ""
@@ -195,3 +263,7 @@ msgid ""
195263"reverse instances of any given operator. For example, :class:`fractions."
196264"Fraction` uses::"
197265msgstr ""
266+ "Dado que la mayoría de las operaciones en un tipo determinado serán muy "
267+ "similares, puede ser útil definir una función auxiliar que genere las "
268+ "instancias *forward* y *reverse* de cualquier operador dado. Por ejemplo, :"
269+ "class:`fractions.Fraction` así:"