Skip to content

Commit 7e79bcf

Browse files
authored
Traducido archivo library/reprlib (#1138)
1 parent 9ed448a commit 7e79bcf

File tree

2 files changed

+65
-7
lines changed

2 files changed

+65
-7
lines changed

TRANSLATORS

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,5 @@ Alan Verdugo Muñoz (@alanverdugo)
114114
Alcides Rivarola (@alcides29)
115115
David Silva (@dvidsilva)
116116
Ricardo Rodríguez (@ricrogz)
117-
Enrique Zárate (enrique-zarate)
117+
Enrique Zárate (enrique-zarate)
118+
Jaume Montané (@jaumemy)

library/reprlib.po

+63-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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/python/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
66
#
@@ -19,22 +19,26 @@ msgstr ""
1919

2020
#: ../Doc/library/reprlib.rst:2
2121
msgid ":mod:`reprlib` --- Alternate :func:`repr` implementation"
22-
msgstr ""
22+
msgstr ":mod:`reprlib` --- Implementación :func:`repr` alternativa"
2323

2424
#: ../Doc/library/reprlib.rst:9
2525
msgid "**Source code:** :source:`Lib/reprlib.py`"
26-
msgstr ""
26+
msgstr "**Código fuente:** :source:`Lib/reprlib.py`"
2727

2828
#: ../Doc/library/reprlib.rst:13
2929
msgid ""
3030
"The :mod:`reprlib` module provides a means for producing object "
3131
"representations with limits on the size of the resulting strings. This is "
3232
"used in the Python debugger and may be useful in other contexts as well."
3333
msgstr ""
34+
"El módulo :mod:`reprlib` provee de los medios necesarios para producir "
35+
"representaciones de objetos con límites en el tamaño de las cadenas "
36+
"resultantes. Es usado en el depurador de Python y puede ser útil también en "
37+
"otros contextos."
3438

3539
#: ../Doc/library/reprlib.rst:17
3640
msgid "This module provides a class, an instance, and a function:"
37-
msgstr ""
41+
msgstr "Este módulo provee una clase, una instancia y una función:"
3842

3943
#: ../Doc/library/reprlib.rst:22
4044
msgid ""
@@ -43,64 +47,91 @@ msgid ""
4347
"types are added to avoid the generation of representations which are "
4448
"excessively long."
4549
msgstr ""
50+
"Clase que provee de servicios de formateo útiles en la implementación de "
51+
"funciones similar a la integrada :func:`repr`; los límites de tamaño para "
52+
"diferentes tipos de objetos son añadidos para evitar la generación de "
53+
"representaciones que son excesivamente largas."
4654

4755
#: ../Doc/library/reprlib.rst:29
4856
msgid ""
4957
"This is an instance of :class:`Repr` which is used to provide the :func:`."
5058
"repr` function described below. Changing the attributes of this object will "
5159
"affect the size limits used by :func:`.repr` and the Python debugger."
5260
msgstr ""
61+
"Esta es una instancia de :class:`Repr` que es usada para proveer la función :"
62+
"func:`.repr` descrita debajo. Cambiar los atributos de este objeto afectará "
63+
"los límites de tamaño usados por :func:`.repr` y el depurador de Python."
5364

5465
#: ../Doc/library/reprlib.rst:37
5566
msgid ""
5667
"This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string "
5768
"similar to that returned by the built-in function of the same name, but with "
5869
"limits on most sizes."
5970
msgstr ""
71+
"Este es el método :meth:`~Repr.repr` de ``aRepr``. Retorna una cadena "
72+
"similar a la retornada por la función integrada del mismo nombre, pero con "
73+
"límites en la mayoría de tamaños."
6074

6175
#: ../Doc/library/reprlib.rst:41
6276
msgid ""
6377
"In addition to size-limiting tools, the module also provides a decorator for "
6478
"detecting recursive calls to :meth:`__repr__` and substituting a placeholder "
6579
"string instead."
6680
msgstr ""
81+
"Además de las herramientas de limitación de tamaño, el módulo también provee "
82+
"un decorador para detectar invocaciones recursivas a :meth:`__repr__` y "
83+
"sustituyendo por un marcador de posición de cadena en su lugar."
6784

6885
#: ../Doc/library/reprlib.rst:50
6986
msgid ""
7087
"Decorator for :meth:`__repr__` methods to detect recursive calls within the "
7188
"same thread. If a recursive call is made, the *fillvalue* is returned, "
7289
"otherwise, the usual :meth:`__repr__` call is made. For example:"
7390
msgstr ""
91+
"Decorador para métodos :meth:`__repr__` que detecta invocaciones recursivas "
92+
"dentro del mismo hilo. Si se produce una invocación recursiva, el "
93+
"*fillvalue* es retornado, si no, se produce la invocación :meth:`__repr__` "
94+
"habitual. Por ejemplo:"
7495

7596
#: ../Doc/library/reprlib.rst:72
7697
msgid "Repr Objects"
77-
msgstr ""
98+
msgstr "Objetos Repr"
7899

79100
#: ../Doc/library/reprlib.rst:74
80101
msgid ""
81102
":class:`Repr` instances provide several attributes which can be used to "
82103
"provide size limits for the representations of different object types, and "
83104
"methods which format specific object types."
84105
msgstr ""
106+
"Las instancias :class:`Repr` proveen varios atributos que pueden ser usados "
107+
"para proporcionar límites de tamaño para las representaciones de diferentes "
108+
"tipos de objetos, y métodos que formatean tipos de objetos específicos."
85109

86110
#: ../Doc/library/reprlib.rst:81
87111
msgid ""
88112
"Depth limit on the creation of recursive representations. The default is "
89113
"``6``."
90114
msgstr ""
115+
"Límite de profundidad en la creación de representaciones recursivas. El "
116+
"valor por defecto es ``6``."
91117

92118
#: ../Doc/library/reprlib.rst:92
93119
msgid ""
94120
"Limits on the number of entries represented for the named object type. The "
95121
"default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` "
96122
"for the others."
97123
msgstr ""
124+
"Límites en el número de entradas representadas por el tipo de objeto "
125+
"nombrado. El valor por defecto es ``4`` para :attr:`maxdict`, ``5`` para :"
126+
"attr:`maxarray`, y ``6`` para los otros."
98127

99128
#: ../Doc/library/reprlib.rst:99
100129
msgid ""
101130
"Maximum number of characters in the representation for an integer. Digits "
102131
"are dropped from the middle. The default is ``40``."
103132
msgstr ""
133+
"Máximo número de caracteres en la representación para un entero. Los dígitos "
134+
"son eliminados desde el medio. El valor por defecto es ``40``."
104135

105136
#: ../Doc/library/reprlib.rst:105
106137
msgid ""
@@ -109,19 +140,30 @@ msgid ""
109140
"source: if escape sequences are needed in the representation, these may be "
110141
"mangled when the representation is shortened. The default is ``30``."
111142
msgstr ""
143+
"Límite en el número de caracteres en la representación de la cadena. Fíjese "
144+
"que la representación \"normal\" de la cadena es la usada como la fuente de "
145+
"caracteres: si se necesitan secuencias de escape en la representación, estas "
146+
"pueden ser desordenadas cuando la representación se ha acortado. El valor "
147+
"por defecto es ``30``."
112148

113149
#: ../Doc/library/reprlib.rst:113
114150
msgid ""
115151
"This limit is used to control the size of object types for which no specific "
116152
"formatting method is available on the :class:`Repr` object. It is applied in "
117153
"a similar manner as :attr:`maxstring`. The default is ``20``."
118154
msgstr ""
155+
"Este límite es usado para controlar el tamaño de los tipos de objetos para "
156+
"los cuales no hay ningún método de formateo específico en el objeto :class:"
157+
"`Repr`. Se aplica de una manera similar a :attr:`maxstring`. El valor por "
158+
"defecto es ``20``."
119159

120160
#: ../Doc/library/reprlib.rst:120
121161
msgid ""
122162
"The equivalent to the built-in :func:`repr` that uses the formatting imposed "
123163
"by the instance."
124164
msgstr ""
165+
"El equivalente a la función integrada :func:`repr` que usa el formateo "
166+
"impuesto por la instancia."
125167

126168
#: ../Doc/library/reprlib.rst:126
127169
msgid ""
@@ -131,6 +173,11 @@ msgid ""
131173
"formatting, with ``level - 1`` for the value of *level* in the recursive "
132174
"call."
133175
msgstr ""
176+
"Implementación recursiva usada por :meth:`.repr`. Este usa el tipo de *obj* "
177+
"para determinar qué método invocar, pasándole *obj* y *level*. Los métodos "
178+
"de tipo específico deben invocar :meth:`repr1` para realizar formateo "
179+
"recursivo, con ``level - 1`` para el valor de *level* en la invocación "
180+
"recursiva."
134181

135182
#: ../Doc/library/reprlib.rst:135
136183
msgid ""
@@ -140,10 +187,16 @@ msgid ""
140187
"meth:`repr1`. Type-specific methods which need to recursively format a value "
141188
"should call ``self.repr1(subobj, level - 1)``."
142189
msgstr ""
190+
"Métodos de formateo para tipos específicos son implementados como métodos "
191+
"con un nombre basado en el nombre del tipo. En el nombre del método, "
192+
"**TYPE** es reemplazado por ``'_'.join(type(obj).__name__.split())``. El "
193+
"envío a estos métodos es gestionado por :meth:`repr1`. Los métodos de tipo "
194+
"específico que necesitan formatear recursivamente un valor deben invocar "
195+
"``self.repr1(subobj, level - 1)``."
143196

144197
#: ../Doc/library/reprlib.rst:145
145198
msgid "Subclassing Repr Objects"
146-
msgstr ""
199+
msgstr "Subclasificando Objetos Repr"
147200

148201
#: ../Doc/library/reprlib.rst:147
149202
msgid ""
@@ -152,3 +205,7 @@ msgid ""
152205
"modify the handling of types already supported. This example shows how "
153206
"special support for file objects could be added::"
154207
msgstr ""
208+
"El uso de envíos dinámicos por :meth:`Repr.repr1` permite a las subclases "
209+
"de :class:`Repr` añadir soporte para tipos adicionales de objetos integrados "
210+
"o modificar el manejo de tipos ya soportados. Este ejemplo muestra como el "
211+
"soporte especial para objetos de tipo archivo puede ser añadido."

0 commit comments

Comments
 (0)