Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ac8e28

Browse files
committed
Update library/abc.po
1 parentf3803e7 commit2ac8e28

File tree

1 file changed

+133
-13
lines changed

1 file changed

+133
-13
lines changed

‎library/abc.po

Lines changed: 133 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
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
87
msgid ""
98
msgstr ""
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-07-10 11:42-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+
"Last-Translator:\n"
18+
"X-Generator:Poedit 2.3.1\n"
19+
"Language:es\n"
20+
"X-Poedit-SourceCharset:UTF-8\n"
1921

2022
#:../Doc/library/abc.rst:2
2123
msgid":mod:`abc` --- Abstract Base Classes"
22-
msgstr""
24+
msgstr":mod:`abc` --- Clases de Base Abstracta"
2325

2426
#:../Doc/library/abc.rst:11
2527
msgid"**Source code:** :source:`Lib/abc.py`"
26-
msgstr""
28+
msgstr"**Código fuente:** :source:`Lib/abc.py`"
2729

2830
#:../Doc/library/abc.rst:15
2931
msgid""
@@ -32,41 +34,66 @@ msgid ""
3234
"see the PEP for why this was added to Python. (See also :pep:`3141` and the :"
3335
"mod:`numbers` module regarding a type hierarchy for numbers based on ABCs.)"
3436
msgstr""
37+
"Este módulo proporciona la infraestructura para definir :term:`clases de "
38+
"base abstracta <abstract base class>` (CBAs) en Python, como se describe en :"
39+
"pep:`3119`; consulte en el PEP el porqué fue agregado a Python. (Véase "
40+
"también :pep:`3141` y el módulo :mod:`numbers` con respecto a una jerarquía "
41+
"de tipos para números basados en CBAs.)"
3542

3643
#:../Doc/library/abc.rst:20
44+
#,fuzzy
3745
msgid""
3846
"The :mod:`collections` module has some concrete classes that derive from "
3947
"ABCs; these can, of course, be further derived. In addition, the :mod:"
4048
"`collections.abc` submodule has some ABCs that can be used to test whether a "
4149
"class or instance provides a particular interface, for example, if it is "
4250
"hashable or if it is a mapping."
4351
msgstr""
52+
"El módulo :mod:'collections' tiene algunas clases concretas que derivan de "
53+
"ABCs; estos pueden, por supuesto, ser derivados aún más. Además, el "
54+
"submódulo :mod:'collections.abc' tiene algunos ABC que se pueden utilizar "
55+
"para probar si una clase o instancia proporciona una interfaz determinada, "
56+
"por ejemplo, si es hashable o si es una asignación."
4457

4558
#:../Doc/library/abc.rst:27
4659
msgid""
4760
"This module provides the metaclass :class:`ABCMeta` for defining ABCs and a "
4861
"helper class :class:`ABC` to alternatively define ABCs through inheritance:"
4962
msgstr""
63+
"Este módulo provee la metaclase :class:`ABCMeta` para definir CBAs y una "
64+
"clase auxiliar :class:`ABC` para definir CBAs alternativamente a través de "
65+
"herencia:"
5066

5167
#:../Doc/library/abc.rst:32
5268
msgid""
5369
"A helper class that has :class:`ABCMeta` as its metaclass. With this class, "
5470
"an abstract base class can be created by simply deriving from :class:`ABC` "
5571
"avoiding sometimes confusing metaclass usage, for example::"
5672
msgstr""
73+
"Una clase auxiliar que tiene una :class:`ABCMeta` como su metaclase. Con "
74+
"esta clase, una clase de base abstracta puede ser creada simplemente "
75+
"derivándola desde :class:`ABC` evitando el uso de metaclases algunas veces "
76+
"confusos, por ejemplo::"
5777

5878
#:../Doc/library/abc.rst:41
79+
#,fuzzy
5980
msgid""
6081
"Note that the type of :class:`ABC` is still :class:`ABCMeta`, therefore "
6182
"inheriting from :class:`ABC` requires the usual precautions regarding "
6283
"metaclass usage, as multiple inheritance may lead to metaclass conflicts. "
6384
"One may also define an abstract base class by passing the metaclass keyword "
6485
"and using :class:`ABCMeta` directly, for example::"
6586
msgstr""
87+
"Tenga en cuenta que el tipo de :class:'ABC' sigue siendo :class:'ABCMeta', "
88+
"por lo tanto, heredar de :class:'ABC' requiere las precauciones habituales "
89+
"con respecto al uso de la metaclase, ya que la herencia múltiple puede dar "
90+
"lugar a conflictos de metaclase. También se puede definir una clase base "
91+
"abstracta pasando la palabra clave metaclass y utilizando :class:'ABCMeta' "
92+
"directamente, por ejemplo::"
6693

6794
#:../Doc/library/abc.rst:57
6895
msgid"Metaclass for defining Abstract Base Classes (ABCs)."
69-
msgstr""
96+
msgstr"Metaclases para definir Clases de Base Abstracta (CBAs)."
7097

7198
#:../Doc/library/abc.rst:59
7299
msgid""
@@ -79,35 +106,50 @@ msgid ""
79106
"will method implementations defined by the registering ABC be callable (not "
80107
"even via :func:`super`). [#]_"
81108
msgstr""
109+
"Utilice esta metaclase para crear un CBA. Un CBA puede ser heredado "
110+
"directamente y así, actuar como una clase mixta. También se puede registrar "
111+
"clases concretas no relacionadas (incluso clases integradas) y CBAs no "
112+
"relacionadas como\"subclases virtuales\" -- estas y sus descendientes serán "
113+
"consideradas subclases del CBA registrado por la función integrada :func:"
114+
"`issubclass`, pero el CBA registrado no aparecerá en su *MRO* (Orden de "
115+
"Resolución de Métodos) ni las implementaciones de método definidas por el "
116+
"CBA registrado serán invocables (ni siquiera a través de :func:`super`). [#]_"
82117

83118
#:../Doc/library/abc.rst:68
84119
msgid""
85120
"Classes created with a metaclass of :class:`ABCMeta` have the following "
86121
"method:"
87122
msgstr""
123+
"Las clases creadas con una metaclase de :class:`ABCMeta` tienen el siguiente "
124+
"método:"
88125

89126
#:../Doc/library/abc.rst:72
90127
msgid""
91128
"Register *subclass* as a\"virtual subclass\" of this ABC. For example::"
92129
msgstr""
130+
"Registre la *subclase* como una\"subclase virtual\" de esta CBA. Por "
131+
"ejemplo::"
93132

94133
#:../Doc/library/abc.rst:85
95134
msgid"Returns the registered subclass, to allow usage as a class decorator."
96135
msgstr""
136+
"Retorna la subclase registrada, para permitir su uso como decorador de clase."
97137

98138
#:../Doc/library/abc.rst:88
99139
msgid""
100140
"To detect calls to :meth:`register`, you can use the :func:`get_cache_token` "
101141
"function."
102142
msgstr""
143+
"Para detectar llamadas a :meth:`register`, se puede usar la función :func:"
144+
"`get_cache_token`."
103145

104146
#:../Doc/library/abc.rst:92
105147
msgid"You can also override this method in an abstract base class:"
106-
msgstr""
148+
msgstr"También se puede redefinir este método en una clase de base abstracta:"
107149

108150
#:../Doc/library/abc.rst:96
109151
msgid"(Must be defined as a class method.)"
110-
msgstr""
152+
msgstr"(Debe ser definido como un método de clase.)"
111153

112154
#:../Doc/library/abc.rst:98
113155
msgid""
@@ -117,6 +159,11 @@ msgid ""
117159
"of the ABC. (This class method is called from the :meth:`__subclasscheck__` "
118160
"method of the ABC.)"
119161
msgstr""
162+
"Compruebe si la *subclase* se considera una subclase de este CBA. Esto "
163+
"significa que puede personalizar aún más el comportamiento de ``issubclass`` "
164+
"sin necesidad de llamar a :meth:`register` en cada clase que desee "
165+
"considerar una subclase del CBA. (Este método de clase es llamado desde el "
166+
"método :meth:`__subclasscheck__` del CBA.)"
120167

121168
#:../Doc/library/abc.rst:104
122169
msgid""
@@ -126,47 +173,74 @@ msgid ""
126173
"even if it would normally be one. If it returns ``NotImplemented``, the "
127174
"subclass check is continued with the usual mechanism."
128175
msgstr""
176+
"Este método debe retornar ``True``, ``False`` o ``NotImplemented``. Si "
177+
"retorna ``True``, la *subclase* se considera una subclase de este CBA. Si "
178+
"retorna ``False``, la *subclase* no se considera una subclase de este CBA, "
179+
"incluso si normalmente sería una. Si retorna ``NotImplemented``, la "
180+
"comprobación de subclase se continúa con el mecanismo usual."
129181

130182
#:../Doc/library/abc.rst:114
131183
msgid""
132184
"For a demonstration of these concepts, look at this example ABC definition::"
133185
msgstr""
186+
"Para una demostración de estos conceptos, vea este ejemplo de la definición "
187+
"CBA::"
134188

135189
#:../Doc/library/abc.rst:143
190+
#,fuzzy
136191
msgid""
137192
"The ABC ``MyIterable`` defines the standard iterable method, :meth:"
138193
"`~iterator.__iter__`, as an abstract method. The implementation given here "
139194
"can still be called from subclasses. The :meth:`get_iterator` method is "
140195
"also part of the ``MyIterable`` abstract base class, but it does not have to "
141196
"be overridden in non-abstract derived classes."
142197
msgstr""
198+
"El ABC ''MyIterable'' define el método iterable estándar, :meth:'-iterator."
199+
"__iter__', como un método abstracto. La implementación dada aquí todavía se "
200+
"puede llamar desde subclases. El método :meth:'get_iterator' también forma "
201+
"parte de la clase base abstracta ''MyIterable'', pero no tiene que "
202+
"reemplazarse en clases derivadas no abstractas."
143203

144204
#:../Doc/library/abc.rst:149
205+
#,fuzzy
145206
msgid""
146207
"The :meth:`__subclasshook__` class method defined here says that any class "
147208
"that has an :meth:`~iterator.__iter__` method in its :attr:`~object."
148209
"__dict__` (or in that of one of its base classes, accessed via the :attr:"
149210
"`~class.__mro__` list) is considered a ``MyIterable`` too."
150211
msgstr""
212+
"El método de la clase :meth:'__subclasshook__' definido aquí dice que "
213+
"cualquier clase que tenga un método :meth:'''iterator.__iter__' en su :"
214+
"attr:''object.__dict__' (o en la de una de sus clases base, a la que se "
215+
"accede a través de la lista :attr:''class.__mro__') también se considera un "
216+
"''MyIterable'''"
151217

152218
#:../Doc/library/abc.rst:154
219+
#,fuzzy
153220
msgid""
154221
"Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``, "
155222
"even though it does not define an :meth:`~iterator.__iter__` method (it uses "
156223
"the old-style iterable protocol, defined in terms of :meth:`__len__` and :"
157224
"meth:`__getitem__`). Note that this will not make ``get_iterator`` "
158225
"available as a method of ``Foo``, so it is provided separately."
159226
msgstr""
227+
"Por último, la última línea convierte ''Foo'' en una subclase virtual de "
228+
"''MyIterable'', aunque no define un método :meth:'-iterator."
229+
"__iter__' (utiliza el protocolo iterable de estilo antiguo, definido en "
230+
"términos de :meth:'__len__' y :meth:'__getitem__'). Tenga en cuenta que "
231+
"esto no hará que ''get_iterator'' esté disponible como un método de ''Foo'', "
232+
"por lo que se proporciona por separado."
160233

161234
#:../Doc/library/abc.rst:163
162235
msgid"The :mod:`abc` module also provides the following decorator:"
163-
msgstr""
236+
msgstr"El módulo :mod:`abc` también proporciona el siguiente decorador:"
164237

165238
#:../Doc/library/abc.rst:167
166239
msgid"A decorator indicating abstract methods."
167240
msgstr""
168241

169242
#:../Doc/library/abc.rst:169
243+
#,fuzzy
170244
msgid""
171245
"Using this decorator requires that the class's metaclass is :class:`ABCMeta` "
172246
"or is derived from it. A class that has a metaclass derived from :class:"
@@ -175,40 +249,70 @@ msgid ""
175249
"the normal 'super' call mechanisms. :func:`abstractmethod` may be used to "
176250
"declare abstract methods for properties and descriptors."
177251
msgstr""
252+
"El uso de este decorador requiere que la metaclase de la clase sea :"
253+
"class:'ABCMeta' o se derive de ella. No se puede crear una instancia de una "
254+
"clase que tiene una metaclase derivada de :class:'ABCMeta' a menos que se "
255+
"invaliden todos sus métodos y propiedades abstractas. Los métodos "
256+
"abstractos se pueden llamar usando cualquiera de los mecanismos de llamada "
257+
"'super' normales. :func:'abstractmethod' se puede utilizar para declarar "
258+
"métodos abstractos para propiedades y descriptores."
178259

179260
#:../Doc/library/abc.rst:176
261+
#,fuzzy
180262
msgid""
181263
"Dynamically adding abstract methods to a class, or attempting to modify the "
182264
"abstraction status of a method or class once it is created, are not "
183265
"supported. The :func:`abstractmethod` only affects subclasses derived using "
184266
"regular inheritance;\"virtual subclasses\" registered with the ABC's :meth:"
185267
"`register` method are not affected."
186268
msgstr""
269+
"No se admiten la adición dinámica de métodos abstractos a una clase o el "
270+
"intento de modificar el estado de abstracción de un método o clase una vez "
271+
"creado. El :func:'abstractmethod' sólo afecta a las subclases derivadas "
272+
"mediante herencia regular; Las\"subclases virtuales\" registradas con el "
273+
"método :meth:'register' de ABC no se ven afectadas."
187274

188275
#:../Doc/library/abc.rst:182
276+
#,fuzzy
189277
msgid""
190278
"When :func:`abstractmethod` is applied in combination with other method "
191279
"descriptors, it should be applied as the innermost decorator, as shown in "
192280
"the following usage examples::"
193281
msgstr""
282+
"Cuando :func:'abstractmethod' se aplica en combinación con otros "
283+
"descriptores de método, se debe aplicar como el decorador más interno, como "
284+
"se muestra en los siguientes ejemplos de uso::"
194285

195286
#:../Doc/library/abc.rst:216
287+
#,fuzzy
196288
msgid""
197289
"In order to correctly interoperate with the abstract base class machinery, "
198290
"the descriptor must identify itself as abstract using :attr:"
199291
"`__isabstractmethod__`. In general, this attribute should be ``True`` if any "
200292
"of the methods used to compose the descriptor are abstract. For example, "
201293
"Python's built-in :class:`property` does the equivalent of::"
202294
msgstr""
295+
"Para interoperar correctamente con la máquina de clase base abstracta, el "
296+
"descriptor debe identificarse como abstracto utilizando :"
297+
"attr:'__isabstractmethod__'. En general, este atributo debe ser ''True'' si "
298+
"alguno de los métodos utilizados para componer el descriptor es abstracto. "
299+
"Por ejemplo, la propiedad integrada de Python :class:'property' hace el "
300+
"equivalente de::"
203301

204302
#:../Doc/library/abc.rst:231
303+
#,fuzzy
205304
msgid""
206305
"Unlike Java abstract methods, these abstract methods may have an "
207306
"implementation. This implementation can be called via the :func:`super` "
208307
"mechanism from the class that overrides it. This could be useful as an end-"
209308
"point for a super-call in a framework that uses cooperative multiple-"
210309
"inheritance."
211310
msgstr""
311+
"A diferencia de los métodos abstractos de Java, estos métodos abstractos "
312+
"pueden tener una implementación. Esta implementación se puede llamar a "
313+
"través del mecanismo :func:'super' de la clase que lo invalida. Esto podría "
314+
"ser útil como punto final para una superen llamada en un marco que usa "
315+
"herencia múltiple cooperativa."
212316

213317
#:../Doc/library/abc.rst:239
214318
msgid"The :mod:`abc` module also supports the following legacy decorators:"
@@ -233,10 +337,13 @@ msgid ""
233337
msgstr""
234338

235339
#:../Doc/library/abc.rst:265
340+
#,fuzzy
236341
msgid""
237342
"It is now possible to use :class:`staticmethod` with :func:`abstractmethod`, "
238343
"making this decorator redundant."
239344
msgstr""
345+
"Ahora es posible utilizar :class:'staticmethod' con :func:'abstractmethod', "
346+
"haciendo que este decorador sea redundante."
240347

241348
#:../Doc/library/abc.rst:269
242349
msgid""
@@ -261,33 +368,44 @@ msgstr ""
261368
msgid""
262369
"A subclass of the built-in :func:`property`, indicating an abstract property."
263370
msgstr""
371+
"Una subclase de la :func:`property` integrada, que indica una propiedad "
372+
"abstracta."
264373

265374
#:../Doc/library/abc.rst:293
266375
msgid""
267376
"This special case is deprecated, as the :func:`property` decorator is now "
268377
"correctly identified as abstract when applied to an abstract method::"
269378
msgstr""
379+
"Este caso especial está obsoleto, ya que el decorador :func:`property` ahora "
380+
"es identificado correctamente como abstracto cuando es aplicado a un método "
381+
"abstracto::"
270382

271383
#:../Doc/library/abc.rst:303
384+
#,fuzzy
272385
msgid""
273386
"The above example defines a read-only property; you can also define a read-"
274387
"write abstract property by appropriately marking one or more of the "
275388
"underlying methods as abstract::"
276389
msgstr""
390+
"En el ejemplo anterior se define una propiedad de solo lectura; También "
391+
"puede definir una propiedad abstracta de lectura y escritura marcando "
392+
"adecuadamente uno o varios de los métodos subyacentes como abstractos::"
277393

278394
#:../Doc/library/abc.rst:317
279395
msgid""
280396
"If only some components are abstract, only those components need to be "
281397
"updated to create a concrete property in a subclass::"
282398
msgstr""
399+
"Si solo algunos componentes son abstractos, solo estos componentes necesitan "
400+
"ser actualizados para crear una propiedad concreta en una subclase::"
283401

284402
#:../Doc/library/abc.rst:326
285403
msgid"The :mod:`abc` module also provides the following functions:"
286-
msgstr""
404+
msgstr"El módulo :mod:`abc` también proporciona las siguientes funciones:"
287405

288406
#:../Doc/library/abc.rst:330
289407
msgid"Returns the current abstract base class cache token."
290-
msgstr""
408+
msgstr"Retorna el token de caché de la clase base abstracta actual."
291409

292410
#:../Doc/library/abc.rst:332
293411
msgid""
@@ -298,10 +416,12 @@ msgstr ""
298416

299417
#:../Doc/library/abc.rst:340
300418
msgid"Footnotes"
301-
msgstr""
419+
msgstr"Notas"
302420

303421
#:../Doc/library/abc.rst:341
304422
msgid""
305423
"C++ programmers should note that Python's virtual base class concept is not "
306424
"the same as C++'s."
307425
msgstr""
426+
"Los desarrolladores de C++ pueden notar que el concepto de clase base "
427+
"virtual de Python no es el mismo que en C++."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp