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/python/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
6
6
#
@@ -19,22 +19,26 @@ msgstr ""
19
19
20
20
#: ../Doc/library/reprlib.rst:2
21
21
msgid ":mod:`reprlib` --- Alternate :func:`repr` implementation"
22
- msgstr ""
22
+ msgstr ":mod:`reprlib` --- Implementación :func:`repr` alternativa "
23
23
24
24
#: ../Doc/library/reprlib.rst:9
25
25
msgid "**Source code:** :source:`Lib/reprlib.py`"
26
- msgstr ""
26
+ msgstr "**Código fuente:** :source:`Lib/reprlib.py` "
27
27
28
28
#: ../Doc/library/reprlib.rst:13
29
29
msgid ""
30
30
"The :mod:`reprlib` module provides a means for producing object "
31
31
"representations with limits on the size of the resulting strings. This is "
32
32
"used in the Python debugger and may be useful in other contexts as well."
33
33
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."
34
38
35
39
#: ../Doc/library/reprlib.rst:17
36
40
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: "
38
42
39
43
#: ../Doc/library/reprlib.rst:22
40
44
msgid ""
@@ -43,64 +47,91 @@ msgid ""
43
47
"types are added to avoid the generation of representations which are "
44
48
"excessively long."
45
49
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."
46
54
47
55
#: ../Doc/library/reprlib.rst:29
48
56
msgid ""
49
57
"This is an instance of :class:`Repr` which is used to provide the :func:`."
50
58
"repr` function described below. Changing the attributes of this object will "
51
59
"affect the size limits used by :func:`.repr` and the Python debugger."
52
60
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."
53
64
54
65
#: ../Doc/library/reprlib.rst:37
55
66
msgid ""
56
67
"This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string "
57
68
"similar to that returned by the built-in function of the same name, but with "
58
69
"limits on most sizes."
59
70
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."
60
74
61
75
#: ../Doc/library/reprlib.rst:41
62
76
msgid ""
63
77
"In addition to size-limiting tools, the module also provides a decorator for "
64
78
"detecting recursive calls to :meth:`__repr__` and substituting a placeholder "
65
79
"string instead."
66
80
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."
67
84
68
85
#: ../Doc/library/reprlib.rst:50
69
86
msgid ""
70
87
"Decorator for :meth:`__repr__` methods to detect recursive calls within the "
71
88
"same thread. If a recursive call is made, the *fillvalue* is returned, "
72
89
"otherwise, the usual :meth:`__repr__` call is made. For example:"
73
90
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:"
74
95
75
96
#: ../Doc/library/reprlib.rst:72
76
97
msgid "Repr Objects"
77
- msgstr ""
98
+ msgstr "Objetos Repr "
78
99
79
100
#: ../Doc/library/reprlib.rst:74
80
101
msgid ""
81
102
":class:`Repr` instances provide several attributes which can be used to "
82
103
"provide size limits for the representations of different object types, and "
83
104
"methods which format specific object types."
84
105
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."
85
109
86
110
#: ../Doc/library/reprlib.rst:81
87
111
msgid ""
88
112
"Depth limit on the creation of recursive representations. The default is "
89
113
"``6``."
90
114
msgstr ""
115
+ "Límite de profundidad en la creación de representaciones recursivas. El "
116
+ "valor por defecto es ``6``."
91
117
92
118
#: ../Doc/library/reprlib.rst:92
93
119
msgid ""
94
120
"Limits on the number of entries represented for the named object type. The "
95
121
"default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` "
96
122
"for the others."
97
123
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."
98
127
99
128
#: ../Doc/library/reprlib.rst:99
100
129
msgid ""
101
130
"Maximum number of characters in the representation for an integer. Digits "
102
131
"are dropped from the middle. The default is ``40``."
103
132
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``."
104
135
105
136
#: ../Doc/library/reprlib.rst:105
106
137
msgid ""
@@ -109,19 +140,30 @@ msgid ""
109
140
"source: if escape sequences are needed in the representation, these may be "
110
141
"mangled when the representation is shortened. The default is ``30``."
111
142
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``."
112
148
113
149
#: ../Doc/library/reprlib.rst:113
114
150
msgid ""
115
151
"This limit is used to control the size of object types for which no specific "
116
152
"formatting method is available on the :class:`Repr` object. It is applied in "
117
153
"a similar manner as :attr:`maxstring`. The default is ``20``."
118
154
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``."
119
159
120
160
#: ../Doc/library/reprlib.rst:120
121
161
msgid ""
122
162
"The equivalent to the built-in :func:`repr` that uses the formatting imposed "
123
163
"by the instance."
124
164
msgstr ""
165
+ "El equivalente a la función integrada :func:`repr` que usa el formateo "
166
+ "impuesto por la instancia."
125
167
126
168
#: ../Doc/library/reprlib.rst:126
127
169
msgid ""
@@ -131,6 +173,11 @@ msgid ""
131
173
"formatting, with ``level - 1`` for the value of *level* in the recursive "
132
174
"call."
133
175
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."
134
181
135
182
#: ../Doc/library/reprlib.rst:135
136
183
msgid ""
@@ -140,10 +187,16 @@ msgid ""
140
187
"meth:`repr1`. Type-specific methods which need to recursively format a value "
141
188
"should call ``self.repr1(subobj, level - 1)``."
142
189
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)``."
143
196
144
197
#: ../Doc/library/reprlib.rst:145
145
198
msgid "Subclassing Repr Objects"
146
- msgstr ""
199
+ msgstr "Subclasificando Objetos Repr "
147
200
148
201
#: ../Doc/library/reprlib.rst:147
149
202
msgid ""
@@ -152,3 +205,7 @@ msgid ""
152
205
"modify the handling of types already supported. This example shows how "
153
206
"special support for file objects could be added::"
154
207
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