1
1
# Copyright (C) 2001-2020, Python Software Foundation
2
2
# 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.
4
4
# docs-es@python.org / https://mail.python.org/mailman3/lists/docs-es.python.org/
5
5
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
6
6
#
7
- #, fuzzy
8
7
msgid ""
9
8
msgstr ""
10
9
"Project-Id-Version : Python 3.8\n "
11
10
"Report-Msgid-Bugs-To : \n "
12
11
"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 "
15
13
"Language-Team : python-doc-es\n "
16
14
"MIME-Version : 1.0\n "
17
15
"Content-Type : text/plain; charset=UTF-8\n "
18
16
"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 "
19
21
20
22
#: ../Doc/library/numbers.rst:2
21
23
msgid ":mod:`numbers` --- Numeric abstract base classes"
22
- msgstr ""
24
+ msgstr ":mod:`numbers` --- Clase base abstracta numérica "
23
25
24
26
#: ../Doc/library/numbers.rst:7
25
27
msgid "**Source code:** :source:`Lib/numbers.py`"
26
- msgstr ""
28
+ msgstr "**Código fuente:** :source:`Lib/numbers.py` "
27
29
30
+ # revisar como usamos "abstract base classes" en el glosario
28
31
#: ../Doc/library/numbers.rst:11
32
+ #, fuzzy
29
33
msgid ""
30
34
"The :mod:`numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:"
31
35
"`abstract base classes <abstract base class>` which progressively define "
32
36
"more operations. None of the types defined in this module can be "
33
37
"instantiated."
34
38
msgstr ""
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."
35
43
36
44
#: ../Doc/library/numbers.rst:18
37
45
msgid ""
38
46
"The root of the numeric hierarchy. If you just want to check if an argument "
39
47
"*x* is a number, without caring what kind, use ``isinstance(x, Number)``."
40
48
msgstr ""
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)``."
41
51
52
+ # La verdad no se si sea buena esta traducción
42
53
#: ../Doc/library/numbers.rst:23
54
+ #, fuzzy
43
55
msgid "The numeric tower"
44
- msgstr ""
56
+ msgstr "La torre numérica "
45
57
46
58
#: ../Doc/library/numbers.rst:27
47
59
msgid ""
@@ -51,50 +63,69 @@ msgid ""
51
63
"``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All "
52
64
"except ``-`` and ``!=`` are abstract."
53
65
msgstr ""
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."
54
71
55
72
#: ../Doc/library/numbers.rst:35
56
73
msgid "Abstract. Retrieves the real component of this number."
57
- msgstr ""
74
+ msgstr "Abstracto. Recupera el componente real de este número. "
58
75
59
76
#: ../Doc/library/numbers.rst:39
60
77
msgid "Abstract. Retrieves the imaginary component of this number."
61
- msgstr ""
78
+ msgstr "Abstracto. Recupera el componente imaginario de este número. "
62
79
63
80
#: ../Doc/library/numbers.rst:43
64
81
msgid ""
65
82
"Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() "
66
83
"== (1-3j)``."
67
84
msgstr ""
85
+ "Abstracto. Retorna el complejo conjugado. Por ejemplo, ``(1+3j).conjugate() "
86
+ "== (1-3j)``."
68
87
69
88
#: ../Doc/library/numbers.rst:48
70
89
msgid ""
71
90
"To :class:`Complex`, :class:`Real` adds the operations that work on real "
72
91
"numbers."
73
92
msgstr ""
93
+ "Para :class:`Complex`, :class:`Real` agrega las operaciones que trabajan con "
94
+ "números reales."
74
95
75
96
#: ../Doc/library/numbers.rst:51
76
97
msgid ""
77
98
"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :"
78
99
"func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, "
79
100
"``%``, ``<``, ``<=``, ``>``, and ``>=``."
80
101
msgstr ""
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 ``>=``."
81
105
82
106
#: ../Doc/library/numbers.rst:55
83
107
msgid ""
84
108
"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :"
85
109
"attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
86
110
msgstr ""
111
+ "*Real* también proporciona valores predeterminados para :func:`complex`, :"
112
+ "attr:`~Complex.real`, :attr:`~Complex.imag`, y :meth:`~Complex.conjugate`."
87
113
114
+ # Se me hace super rara toda la cadena. Agrego "Subtypes" como "Hereda"
88
115
#: ../Doc/library/numbers.rst:61
116
+ #, fuzzy
89
117
msgid ""
90
118
"Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and :attr:"
91
119
"`~Rational.denominator` properties, which should be in lowest terms. With "
92
120
"these, it provides a default for :func:`float`."
93
121
msgstr ""
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`."
94
125
95
126
#: ../Doc/library/numbers.rst:68 ../Doc/library/numbers.rst:72
96
127
msgid "Abstract."
97
- msgstr ""
128
+ msgstr "Abstracto. "
98
129
99
130
#: ../Doc/library/numbers.rst:77
100
131
msgid ""
@@ -103,33 +134,47 @@ msgid ""
103
134
"`~Rational.denominator`. Adds abstract methods for ``**`` and bit-string "
104
135
"operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``."
105
136
msgstr ""
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
+ "``~``."
106
142
107
143
#: ../Doc/library/numbers.rst:84
108
144
msgid "Notes for type implementors"
109
- msgstr ""
145
+ msgstr "Notas para implementadores de tipos "
110
146
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
111
148
#: ../Doc/library/numbers.rst:86
149
+ #, fuzzy
112
150
msgid ""
113
151
"Implementors should be careful to make equal numbers equal and hash them to "
114
152
"the same values. This may be subtle if there are two different extensions of "
115
153
"the real numbers. For example, :class:`fractions.Fraction` implements :func:"
116
154
"`hash` as follows::"
117
155
msgstr ""
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::"
118
160
119
161
#: ../Doc/library/numbers.rst:105
120
162
msgid "Adding More Numeric ABCs"
121
- msgstr ""
163
+ msgstr "Agregar más *ABCs* numéricos "
122
164
123
165
#: ../Doc/library/numbers.rst:107
124
166
msgid ""
125
167
"There are, of course, more possible ABCs for numbers, and this would be a "
126
168
"poor hierarchy if it precluded the possibility of adding those. You can add "
127
169
"``MyFoo`` between :class:`Complex` and :class:`Real` with::"
128
170
msgstr ""
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í::"
129
174
130
175
#: ../Doc/library/numbers.rst:119
131
176
msgid "Implementing the arithmetic operations"
132
- msgstr ""
177
+ msgstr "Implementar operaciones aritméticas "
133
178
134
179
#: ../Doc/library/numbers.rst:121
135
180
msgid ""
@@ -140,18 +185,25 @@ msgid ""
140
185
"and :meth:`__radd__` should be defined as::"
141
186
msgstr ""
142
187
188
+ # boilerplate -> repetitivo --revisar en todo el archivo
143
189
#: ../Doc/library/numbers.rst:152
190
+ #, fuzzy
144
191
msgid ""
145
192
"There are 5 different cases for a mixed-type operation on subclasses of :"
146
193
"class:`Complex`. I'll refer to all of the above code that doesn't refer to "
147
194
"``MyIntegral`` and ``OtherTypeIKnowAbout`` as \" boilerplate\" . ``a`` will be "
148
195
"an instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: "
149
196
"Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
150
197
msgstr ""
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``:"
151
203
152
204
#: ../Doc/library/numbers.rst:159
153
205
msgid "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. "
155
207
156
208
#: ../Doc/library/numbers.rst:161
157
209
msgid ""
@@ -161,32 +213,48 @@ msgid ""
161
213
"`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement :meth:"
162
214
"`__add__` at all.)"
163
215
msgstr ""
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.)"
164
221
165
222
#: ../Doc/library/numbers.rst:167
166
223
msgid ""
167
224
"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
168
225
"well."
169
226
msgstr ""
227
+ "Entonces ``B``'s :meth:`__radd__` tiene una oportunidad. Si acepta ``a``, "
228
+ "todo esta bien."
170
229
171
230
#: ../Doc/library/numbers.rst:169
172
231
msgid ""
173
232
"If it falls back to the boilerplate, there are no more possible methods to "
174
233
"try, so this is where the default implementation should live."
175
234
msgstr ""
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."
176
237
177
238
#: ../Doc/library/numbers.rst:172
178
239
msgid ""
179
240
"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok, "
180
241
"because it was implemented with knowledge of ``A``, so it can handle those "
181
242
"instances before delegating to :class:`Complex`."
182
243
msgstr ""
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`."
183
247
184
248
#: ../Doc/library/numbers.rst:177
185
249
msgid ""
186
250
"If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, "
187
251
"then the appropriate shared operation is the one involving the built in :"
188
252
"class:`complex`, and both :meth:`__radd__` s land there, so ``a+b == b+a``."
189
253
msgstr ""
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``."
190
258
191
259
#: ../Doc/library/numbers.rst:182
192
260
msgid ""
@@ -195,3 +263,7 @@ msgid ""
195
263
"reverse instances of any given operator. For example, :class:`fractions."
196
264
"Fraction` uses::"
197
265
msgstr ""
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í:"
0 commit comments