@@ -13,12 +13,12 @@ msgstr ""
13
13
"POT-Creation-Date : 2022-10-25 19:47+0200\n "
14
14
"PO-Revision-Date : 2021-12-12 12:55-0500\n "
15
15
"Last-Translator : Adolfo Hristo David Roque Gámez <aroquega@gmail.com>\n "
16
- "Language : es\n "
17
16
"Language-Team : python-doc-es\n "
18
- "Plural-Forms : nplurals=2; plural=(n != 1); \n "
17
+ "Language : es \n "
19
18
"MIME-Version : 1.0\n "
20
19
"Content-Type : text/plain; charset=utf-8\n "
21
20
"Content-Transfer-Encoding : 8bit\n "
21
+ "Plural-Forms : nplurals=2; plural=(n != 1);\n "
22
22
"Generated-By : Babel 2.10.3\n "
23
23
24
24
#: ../Doc/library/functools.rst:2
@@ -178,17 +178,17 @@ msgstr ""
178
178
"de comparación."
179
179
180
180
#: ../Doc/library/functools.rst:122
181
- #, fuzzy
182
181
msgid ""
183
182
"A comparison function is any callable that accepts two arguments, compares "
184
183
"them, and returns a negative number for less-than, zero for equality, or a "
185
184
"positive number for greater-than. A key function is a callable that accepts "
186
185
"one argument and returns another value to be used as the sort key."
187
186
msgstr ""
188
187
"Una función de comparación es cualquier invocable que acepta dos argumentos, "
189
- "los compara y retorna un número negativo para diferencia, cero para igualdad "
190
- "o un número positivo para más. Una función clave es un invocable que acepta "
191
- "un argumento y retorna otro valor para ser usado como clave de ordenación."
188
+ "los compara y devuelve un número negativo para menor que, cero para igualdad "
189
+ "o un número positivo para mayor que. Una función clave es una función "
190
+ "invocable que acepta un argumento y devuelve otro valor para usar como clave "
191
+ "de ordenación."
192
192
193
193
#: ../Doc/library/functools.rst:131
194
194
msgid ""
@@ -218,16 +218,15 @@ msgstr ""
218
218
"hashable."
219
219
220
220
#: ../Doc/library/functools.rst:146
221
- #, fuzzy
222
221
msgid ""
223
222
"Distinct argument patterns may be considered to be distinct calls with "
224
223
"separate cache entries. For example, ``f(a=1, b=2)`` and ``f(b=2, a=1)`` "
225
224
"differ in their keyword argument order and may have two separate cache "
226
225
"entries."
227
226
msgstr ""
228
- "Los patrones de argumento distintos pueden considerarse como llamadas "
229
- "distintas con entradas de caché separadas. Por ejemplo, `f(a=1, b=2)` y "
230
- "`f(b=2, a=1)` difieren en el orden de los argumentos de las palabras clave y "
227
+ "Los patrones de argumentos distintos pueden considerarse llamadas distintas "
228
+ "con entradas de memoria caché separadas. Por ejemplo, `` f(a=1, b=2)` ` y "
229
+ "`` f(b=2, a=1)`` difieren en el orden de sus argumentos de palabras clave y "
231
230
"pueden tener dos entradas de caché separadas."
232
231
233
232
#: ../Doc/library/functools.rst:151
@@ -255,6 +254,12 @@ msgid ""
255
254
"regard them as equivalent calls and only cache a single result. (Some types "
256
255
"such as *str* and *int* may be cached separately even when *typed* is false.)"
257
256
msgstr ""
257
+ "Si *typed* se establece en verdadero, los argumentos de función de "
258
+ "diferentes tipos se almacenarán en caché por separado. Si *typed* es falso, "
259
+ "la implementación generalmente las considerará como llamadas equivalentes y "
260
+ "solo almacenará en caché un único resultado. (Algunos tipos como *str* y "
261
+ "*int* pueden almacenarse en caché por separado incluso cuando *typed* es "
262
+ "falso)."
258
263
259
264
#: ../Doc/library/functools.rst:168
260
265
msgid ""
@@ -264,6 +269,12 @@ msgid ""
264
269
"contrast, the tuple arguments ``('answer', Decimal(42))`` and ``('answer', "
265
270
"Fraction(42))`` are treated as equivalent."
266
271
msgstr ""
272
+ "Tenga en cuenta que la especificidad de tipo se aplica solo a los argumentos "
273
+ "inmediatos de la función en lugar de a su contenido. Los argumentos "
274
+ "escalares, ``Decimal(42)`` y ``Fraction(42)`` se tratan como llamadas "
275
+ "distintas con resultados distintos. Por el contrario, los argumentos de "
276
+ "tupla ``('answer', Decimal(42))`` y ``('answer', Fraction(42))`` se tratan "
277
+ "como equivalentes."
267
278
268
279
#: ../Doc/library/functools.rst:174
269
280
msgid ""
@@ -320,6 +331,8 @@ msgid ""
320
331
"If a method is cached, the ``self`` instance argument is included in the "
321
332
"cache. See :ref:`faq-cache-method-calls`"
322
333
msgstr ""
334
+ "Si un método se almacena en caché, el argumento de la instancia ``self`` se "
335
+ "incluye en el caché. Ver :ref:`faq-cache-method-calls`"
323
336
324
337
#: ../Doc/library/functools.rst:197
325
338
msgid ""
@@ -556,32 +569,31 @@ msgstr ""
556
569
"term:`generic function`."
557
570
558
571
#: ../Doc/library/functools.rst:413
559
- #, fuzzy
560
572
msgid ""
561
573
"To define a generic function, decorate it with the ``@singledispatch`` "
562
574
"decorator. When defining a function using ``@singledispatch``, note that the "
563
575
"dispatch happens on the type of the first argument::"
564
576
msgstr ""
565
- "Para definir la función genérica, decórela con el decorador "
566
- "``@singledispatch``. Ten en cuenta que el envío ocurre en el tipo del primer "
567
- "argumento, crea tu función en consecuencia: :"
577
+ "Para definir una función genérica, decórala con el decorador "
578
+ "``@singledispatch``. Al definir una función usando ``@singledispatch``, "
579
+ "tenga en cuenta que el envío ocurre en el tipo del primer argumento :"
568
580
569
581
#: ../Doc/library/functools.rst:424
570
- #, fuzzy
571
582
msgid ""
572
583
"To add overloaded implementations to the function, use the :func:`register` "
573
584
"attribute of the generic function, which can be used as a decorator. For "
574
585
"functions annotated with types, the decorator will infer the type of the "
575
586
"first argument automatically::"
576
587
msgstr ""
577
- "Para añadir implementaciones sobrecargadas a la función, use el atributo :"
578
- "func:`register` de la función genérica. Es un decorador. Para las "
579
- "funciones anotadas con tipos, el decorador deducirá automáticamente el tipo "
580
- "del primer argumento: :"
588
+ "Para agregar implementaciones sobrecargadas a la función, use el atributo :"
589
+ "func:`register` de la función genérica, que se puede usar como decorador. "
590
+ "Para las funciones anotadas con tipos, el decorador inferirá automáticamente "
591
+ "el tipo del primer argumento:"
581
592
582
593
#: ../Doc/library/functools.rst:442
583
594
msgid ":data:`types.UnionType` and :data:`typing.Union` can also be used::"
584
595
msgstr ""
596
+ "También se pueden utilizar :data:`types.UnionType` y :data:`typing.Union`:"
585
597
586
598
#: ../Doc/library/functools.rst:459
587
599
msgid ""
@@ -592,24 +604,23 @@ msgstr ""
592
604
"apropiado puede ser pasado explícitamente al propio decorador::"
593
605
594
606
#: ../Doc/library/functools.rst:470
595
- #, fuzzy
596
607
msgid ""
597
608
"To enable registering :term:`lambdas<lambda>` and pre-existing functions, "
598
609
"the :func:`register` attribute can also be used in a functional form::"
599
610
msgstr ""
600
- "Para permitir el registro de lambdas y funciones preexistentes, el atributo :"
601
- "func:`register` puede utilizarse de forma funcional::"
611
+ "Para habilitar el registro de :term:`lambdas<lambda>` y funciones "
612
+ "preexistentes, el atributo :func:`register` también se puede utilizar de "
613
+ "forma funcional:"
602
614
603
615
#: ../Doc/library/functools.rst:478
604
- #, fuzzy
605
616
msgid ""
606
617
"The :func:`register` attribute returns the undecorated function. This "
607
618
"enables decorator stacking, :mod:`pickling<pickle>`, and the creation of "
608
619
"unit tests for each variant independently::"
609
620
msgstr ""
610
- "El atributo :func:`register` retorna la función no decorada que permite al "
611
- "decorador apilar, decapar, así como crear pruebas de unidad para cada "
612
- "variante de forma independiente: :"
621
+ "El atributo :func:`register` devuelve la función sin decorar. Esto permite "
622
+ "el apilamiento de decoradores, :mod:`pickling<pickle>`, y la creación de "
623
+ "pruebas unitarias para cada variante de forma independiente:"
613
624
614
625
#: ../Doc/library/functools.rst:492
615
626
msgid ""
@@ -620,38 +631,35 @@ msgstr ""
620
631
"argumento::"
621
632
622
633
#: ../Doc/library/functools.rst:512
623
- #, fuzzy
624
634
msgid ""
625
635
"Where there is no registered implementation for a specific type, its method "
626
636
"resolution order is used to find a more generic implementation. The original "
627
637
"function decorated with ``@singledispatch`` is registered for the base :"
628
638
"class:`object` type, which means it is used if no better implementation is "
629
639
"found."
630
640
msgstr ""
631
- "Cuando no hay una implementación registrada para un tipo específico, su "
632
- "orden de resolución de método se utiliza para encontrar una implementación "
633
- "más genérica. La función original decorada con ``@singledispatch`` se "
634
- "registra para el tipo de `` object`` base , lo que significa que se usa si no "
635
- "se encuentra una mejor implementación."
641
+ "Cuando no hay una implementación registrada para un tipo específico, se usa "
642
+ "su orden de resolución de métodos para encontrar una implementación más "
643
+ "genérica. La función original decorada con ``@singledispatch`` está "
644
+ "registrada para el tipo base :class:` object`, lo que significa que se usa si "
645
+ "no se encuentra una implementación mejor ."
636
646
637
647
#: ../Doc/library/functools.rst:518
638
- #, fuzzy
639
648
msgid ""
640
649
"If an implementation is registered to an :term:`abstract base class`, "
641
650
"virtual subclasses of the base class will be dispatched to that "
642
651
"implementation::"
643
652
msgstr ""
644
- "Si una implementación se registra en :term:`abstract base class`, las "
645
- "subclases virtuales se enviarán a esa implementación: :"
653
+ "Si una implementación está registrada en un :term:`abstract base class`, las "
654
+ "subclases virtuales de la clase base se enviarán a esa implementación:"
646
655
647
656
#: ../Doc/library/functools.rst:533
648
- #, fuzzy
649
657
msgid ""
650
658
"To check which implementation the generic function will choose for a given "
651
659
"type, use the ``dispatch()`` attribute::"
652
660
msgstr ""
653
- "Para comprobar qué implementación elegirá la función genérica para un tipo "
654
- "determinado, utilice el atributo ``dispatch()``: :"
661
+ "Para verificar qué implementación elegirá la función genérica para un tipo "
662
+ "dado, use el atributo ``dispatch()``:"
655
663
656
664
#: ../Doc/library/functools.rst:541
657
665
msgid ""
@@ -662,16 +670,17 @@ msgstr ""
662
670
"``registry`` de sólo lectura::"
663
671
664
672
#: ../Doc/library/functools.rst:555
665
- #, fuzzy
666
673
msgid "The :func:`register` attribute now supports using type annotations."
667
- msgstr "El atributo :func:`register` soporta el uso de anotaciones de tipo."
674
+ msgstr ""
675
+ "El atributo :func:`register` ahora admite el uso de anotaciones de tipo."
668
676
669
677
#: ../Doc/library/functools.rst:558
670
- #, fuzzy
671
678
msgid ""
672
679
"The :func:`register` attribute now supports :data:`types.UnionType` and :"
673
680
"data:`typing.Union` as type annotations."
674
- msgstr "El atributo :func:`register` soporta el uso de anotaciones de tipo."
681
+ msgstr ""
682
+ "El atributo :func:`register` ahora admite :data:`types.UnionType` y :data:"
683
+ "`typing.Union` como anotaciones de tipo."
675
684
676
685
#: ../Doc/library/functools.rst:565
677
686
msgid ""
@@ -682,41 +691,40 @@ msgstr ""
682
691
"`generic function`."
683
692
684
693
#: ../Doc/library/functools.rst:568
685
- #, fuzzy
686
694
msgid ""
687
695
"To define a generic method, decorate it with the ``@singledispatchmethod`` "
688
696
"decorator. When defining a function using ``@singledispatchmethod``, note "
689
697
"that the dispatch happens on the type of the first non-*self* or non-*cls* "
690
698
"argument::"
691
699
msgstr ""
692
700
"Para definir un método genérico, decóralo con el decorador "
693
- "``@singledispatchmethod``. Tenga en cuenta que el envío se produce en el "
694
- "tipo del primer argumento que no sea un atributo de instancias (*non-self*) "
695
- "ni un atributo de clases (*non-cls*), cree su función en consecuencia: :"
701
+ "``@singledispatchmethod``. Al definir una función usando "
702
+ "``@singledispatchmethod``, tenga en cuenta que el envío ocurre en el tipo "
703
+ "del primer argumento no *self* o no *cls* :"
696
704
697
705
#: ../Doc/library/functools.rst:586
698
- #, fuzzy
699
706
msgid ""
700
707
"``@singledispatchmethod`` supports nesting with other decorators such as :"
701
708
"func:`@classmethod<classmethod>`. Note that to allow for ``dispatcher."
702
709
"register``, ``singledispatchmethod`` must be the *outer most* decorator. "
703
710
"Here is the ``Negator`` class with the ``neg`` methods bound to the class, "
704
711
"rather than an instance of the class::"
705
712
msgstr ""
706
- "El ``@singledispatchmethod`` apoya el anidamiento con otros decoradores como "
707
- "el ``@classmethod``. Ten en cuenta que para permitir el ``dispatcher."
708
- "register``, ``singledispatchmethod`` debe ser el decorador *outer most*. "
709
- "Aquí está la clase ``neg`` con los métodos ``Negator`` limitados a la clase::"
713
+ "``@singledispatchmethod`` admite la anidación con otros decoradores como :"
714
+ "func:`@classmethod<classmethod>`. Tenga en cuenta que para permitir "
715
+ "``dispatcher.register``, ``singledispatchmethod`` debe ser el decorador *más "
716
+ "externo*. Aquí está la clase ``Negator`` con los métodos ``neg`` vinculados "
717
+ "a la clase, en lugar de una instancia de la clase:"
710
718
711
719
#: ../Doc/library/functools.rst:608
712
- #, fuzzy
713
720
msgid ""
714
721
"The same pattern can be used for other similar decorators: :func:"
715
722
"`@staticmethod<staticmethod>`, :func:`@abstractmethod<abc.abstractmethod>`, "
716
723
"and others."
717
724
msgstr ""
718
- "El mismo patrón puede ser usado para otros decoradores similares: "
719
- "``staticmethod``, ``abstractmethod``, y otros."
725
+ "El mismo patrón se puede utilizar para otros decoradores similares: :func:"
726
+ "`@staticmethod<staticmethod>`, :func:`@abstractmethod<abc.abstractmethod>` y "
727
+ "otros."
720
728
721
729
#: ../Doc/library/functools.rst:617
722
730
msgid ""
0 commit comments