6
6
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to
7
7
# get the list of volunteers
8
8
#
9
- #, fuzzy
10
9
msgid ""
11
10
msgstr ""
12
11
"Project-Id-Version : Python 3.8\n "
13
12
"Report-Msgid-Bugs-To : \n "
14
13
"POT-Creation-Date : 2020-05-05 12:54+0200\n "
15
- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
16
- "Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
14
+ "PO-Revision-Date : 2020-05-16 21:14+0200\n "
17
15
"Language-Team : python-doc-es\n "
18
16
"MIME-Version : 1.0\n "
19
- "Content-Type : text/plain; charset=utf -8\n "
17
+ "Content-Type : text/plain; charset=UTF -8\n "
20
18
"Content-Transfer-Encoding : 8bit\n "
21
19
"Generated-By : Babel 2.8.0\n "
20
+ "Plural-Forms : nplurals=2; plural=(n != 1);\n "
21
+ "Last-Translator : Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n "
22
+ "Language : es\n "
23
+ "X-Generator : Poedit 2.3\n "
22
24
23
25
#: ../Doc/c-api/gcsupport.rst:6
24
26
msgid "Supporting Cyclic Garbage Collection"
25
- msgstr ""
27
+ msgstr "Apoyo a la recolección de basura cíclica "
26
28
27
29
#: ../Doc/c-api/gcsupport.rst:8
28
30
msgid ""
@@ -33,6 +35,12 @@ msgid ""
33
35
"(such as numbers or strings), do not need to provide any explicit support "
34
36
"for garbage collection."
35
37
msgstr ""
38
+ "El soporte de Python para detectar y recolectar basura que involucra "
39
+ "referencias circulares requiere el soporte de tipos de objetos que son "
40
+ "\" contenedores\" para otros objetos que también pueden ser contenedores. Los "
41
+ "tipos que no almacenan referencias a otros objetos, o que solo almacenan "
42
+ "referencias a tipos atómicos (como números o cadenas), no necesitan "
43
+ "proporcionar ningún soporte explícito para la recolección de basura."
36
44
37
45
#: ../Doc/c-api/gcsupport.rst:15
38
46
msgid ""
@@ -42,48 +50,68 @@ msgid ""
42
50
"instances of the type are mutable, a :c:member:`~PyTypeObject.tp_clear` "
43
51
"implementation must also be provided."
44
52
msgstr ""
53
+ "Para crear un tipo de contenedor, el campo :c:member:`~PyTypeObject."
54
+ "tp_flags` del objeto tipo debe incluir :const:`Py_TPFLAGS_HAVE_GC` y "
55
+ "proporcionar una implementación del manejador :c:member:`~PyTypeObject."
56
+ "tp_traverse` . Si las instancias del tipo son mutables, también se debe "
57
+ "proporcionar una implementación a :c:member:`~PyTypeObject.tp_clear`."
45
58
46
59
#: ../Doc/c-api/gcsupport.rst:24
47
60
msgid ""
48
61
"Objects with a type with this flag set must conform with the rules "
49
62
"documented here. For convenience these objects will be referred to as "
50
63
"container objects."
51
64
msgstr ""
65
+ "Los objetos con un tipo con este indicador establecido deben cumplir con las "
66
+ "reglas documentadas aquí. Por conveniencia, estos objetos se denominarán "
67
+ "objetos contenedor."
52
68
53
69
#: ../Doc/c-api/gcsupport.rst:28
54
70
msgid "Constructors for container types must conform to two rules:"
55
71
msgstr ""
72
+ "Los constructores para tipos de contenedores deben cumplir con dos reglas:"
56
73
57
74
#: ../Doc/c-api/gcsupport.rst:30
58
75
msgid ""
59
76
"The memory for the object must be allocated using :c:func:`PyObject_GC_New` "
60
77
"or :c:func:`PyObject_GC_NewVar`."
61
78
msgstr ""
79
+ "La memoria para el objeto debe asignarse usando :c:func:`PyObject_GC_New` o :"
80
+ "c:func:`PyObject_GC_NewVar`."
62
81
63
82
#: ../Doc/c-api/gcsupport.rst:33
64
83
msgid ""
65
84
"Once all the fields which may contain references to other containers are "
66
85
"initialized, it must call :c:func:`PyObject_GC_Track`."
67
86
msgstr ""
87
+ "Una vez que se inicializan todos los campos que pueden contener referencias "
88
+ "a otros contenedores, debe llamar a :c:func:`PyObject_GC_Track`."
68
89
69
90
#: ../Doc/c-api/gcsupport.rst:39
70
91
msgid ""
71
92
"Analogous to :c:func:`PyObject_New` but for container objects with the :"
72
93
"const:`Py_TPFLAGS_HAVE_GC` flag set."
73
94
msgstr ""
95
+ "Análogo a :c:func:`PyObject_New` pero para objetos de contenedor con el "
96
+ "*flag* :const:`Py_TPFLAGS_HAVE_GC` establecido."
74
97
75
98
#: ../Doc/c-api/gcsupport.rst:45
76
99
msgid ""
77
100
"Analogous to :c:func:`PyObject_NewVar` but for container objects with the :"
78
101
"const:`Py_TPFLAGS_HAVE_GC` flag set."
79
102
msgstr ""
103
+ "Análogo a :c:func:`PyObject_NewVar` pero para objetos de contenedor con el "
104
+ "*flag* :const:`Py_TPFLAGS_HAVE_GC` establecido."
80
105
81
106
#: ../Doc/c-api/gcsupport.rst:51
82
107
msgid ""
83
108
"Resize an object allocated by :c:func:`PyObject_NewVar`. Returns the "
84
109
"resized object or ``NULL`` on failure. *op* must not be tracked by the "
85
110
"collector yet."
86
111
msgstr ""
112
+ "Cambia el tamaño de un objeto asignado por :c:func:`PyObject_NewVar`. "
113
+ "Retorna el objeto redimensionado o ``NULL`` en caso de falla. *op* aún no "
114
+ "debe ser rastreado por el recolector de basura."
87
115
88
116
#: ../Doc/c-api/gcsupport.rst:57
89
117
msgid ""
@@ -93,29 +121,43 @@ msgid ""
93
121
"followed by the :c:member:`~PyTypeObject.tp_traverse` handler become valid, "
94
122
"usually near the end of the constructor."
95
123
msgstr ""
124
+ "Agrega el objeto *op* al conjunto de objetos contenedor seguidos por el "
125
+ "recolector de basura. El recolector puede ejecutarse en momentos "
126
+ "inesperados, por lo que los objetos deben ser válidos durante el "
127
+ "seguimiento. Esto debería llamarse una vez que todos los campos seguidos "
128
+ "por :c:member:`~PyTypeObject.tp_traverse` se vuelven válidos, generalmente "
129
+ "cerca del final del constructor."
96
130
97
131
#: ../Doc/c-api/gcsupport.rst:64
98
132
msgid ""
99
133
"Similarly, the deallocator for the object must conform to a similar pair of "
100
134
"rules:"
101
135
msgstr ""
136
+ "Del mismo modo, el desasignador (*deallocator*) para el objeto debe cumplir "
137
+ "con un par similar de reglas:"
102
138
103
139
#: ../Doc/c-api/gcsupport.rst:67
104
140
msgid ""
105
141
"Before fields which refer to other containers are invalidated, :c:func:"
106
142
"`PyObject_GC_UnTrack` must be called."
107
143
msgstr ""
144
+ "Antes de invalidar los campos que se refieren a otros contenedores, debe "
145
+ "llamarse :c:func:`PyObject_GC_UnTrack`."
108
146
109
147
#: ../Doc/c-api/gcsupport.rst:70
110
148
msgid ""
111
149
"The object's memory must be deallocated using :c:func:`PyObject_GC_Del`."
112
150
msgstr ""
151
+ "La memoria del objeto debe ser desasignada (*deallocated*) usando :c:func:"
152
+ "`PyObject_GC_Del`."
113
153
114
154
#: ../Doc/c-api/gcsupport.rst:75
115
155
msgid ""
116
156
"Releases memory allocated to an object using :c:func:`PyObject_GC_New` or :c:"
117
157
"func:`PyObject_GC_NewVar`."
118
158
msgstr ""
159
+ "Libera memoria asignada a un objeto usando :c:func:`PyObject_GC_New` o :c:"
160
+ "func:`PyObject_GC_NewVar`."
119
161
120
162
#: ../Doc/c-api/gcsupport.rst:81
121
163
msgid ""
@@ -126,18 +168,29 @@ msgid ""
126
168
"before any of the fields used by the :c:member:`~PyTypeObject.tp_traverse` "
127
169
"handler become invalid."
128
170
msgstr ""
171
+ "Elimina el objeto *op* del conjunto de objetos contenedor rastreados por el "
172
+ "recolector de basura. Tenga en cuenta que :c:func:`PyObject_GC_Track` puede "
173
+ "ser llamado nuevamente en este objeto para agregarlo nuevamente al conjunto "
174
+ "de objetos rastreados. El desasignador (el manejador :c:member:"
175
+ "`~PyTypeObject.tp_dealloc`) debería llamarlo para el objeto antes de que "
176
+ "cualquiera de los campos utilizados por el manejador :c:member:"
177
+ "`~PyTypeObject.tp_traverse` no sea válido."
129
178
130
179
#: ../Doc/c-api/gcsupport.rst:90
131
180
msgid ""
132
181
"The :c:func:`_PyObject_GC_TRACK` and :c:func:`_PyObject_GC_UNTRACK` macros "
133
182
"have been removed from the public C API."
134
183
msgstr ""
184
+ "Los macros :c:func:`_PyObject_GC_TRACK` y :c:func:`_PyObject_GC_UNTRACK` se "
185
+ "han eliminado de la API pública de C."
135
186
136
187
#: ../Doc/c-api/gcsupport.rst:93
137
188
msgid ""
138
189
"The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function "
139
190
"parameter of this type:"
140
191
msgstr ""
192
+ "El manejador :c:member:`~PyTypeObject.tp_traverse` acepta un parámetro de "
193
+ "función de este tipo:"
141
194
142
195
#: ../Doc/c-api/gcsupport.rst:98
143
196
msgid ""
@@ -148,12 +201,20 @@ msgid ""
148
201
"functions to implement cyclic garbage detection; it's not expected that "
149
202
"users will need to write their own visitor functions."
150
203
msgstr ""
204
+ "Tipo de la función visitante que se pasa al manejador :c:member:"
205
+ "`~PyTypeObject.tp_traverse`. La función debe llamarse con un objeto para "
206
+ "atravesar como *object* y el tercer parámetro para el manejador :c:member:"
207
+ "`~PyTypeObject.tp_traverse` como *arg*. El núcleo de Python utiliza varias "
208
+ "funciones visitantes para implementar la detección de basura cíclica; No se "
209
+ "espera que los usuarios necesiten escribir sus propias funciones visitante."
151
210
152
211
#: ../Doc/c-api/gcsupport.rst:105
153
212
msgid ""
154
213
"The :c:member:`~PyTypeObject.tp_traverse` handler must have the following "
155
214
"type:"
156
215
msgstr ""
216
+ "El manejador :c:member:`~PyTypeObject.tp_traverse` debe tener el siguiente "
217
+ "tipo:"
157
218
158
219
#: ../Doc/c-api/gcsupport.rst:110
159
220
msgid ""
@@ -164,6 +225,12 @@ msgid ""
164
225
"object argument. If *visit* returns a non-zero value that value should be "
165
226
"returned immediately."
166
227
msgstr ""
228
+ "Función transversal para un objeto contenedor. Las implementaciones deben "
229
+ "llamar a la función *visit* para cada objeto directamente contenido por "
230
+ "*self*, siendo los parámetros a *visit* el objeto contenido y el valor *arg* "
231
+ "pasado al controlador. La función *visit* no debe llamarse con un argumento "
232
+ "de objeto ``NULL``. Si *visit* devuelve un valor distinto de cero, ese valor "
233
+ "debe devolverse inmediatamente."
167
234
168
235
#: ../Doc/c-api/gcsupport.rst:117
169
236
msgid ""
@@ -172,19 +239,29 @@ msgid ""
172
239
"member:`~PyTypeObject.tp_traverse` implementation must name its arguments "
173
240
"exactly *visit* and *arg*:"
174
241
msgstr ""
242
+ "Para simplificar la escritura de los manejadores :c:member:`~PyTypeObject."
243
+ "tp_traverse`, se proporciona un macro a :c:func:`Py_VISIT`. Para usar este "
244
+ "macro, la implementación :c:member:`~PyTypeObject.tp_traverse` debe nombrar "
245
+ "sus argumentos exactamente *visit* y *arg*:"
175
246
176
247
#: ../Doc/c-api/gcsupport.rst:124
177
248
msgid ""
178
249
"If *o* is not ``NULL``, call the *visit* callback, with arguments *o* and "
179
250
"*arg*. If *visit* returns a non-zero value, then return it. Using this "
180
251
"macro, :c:member:`~PyTypeObject.tp_traverse` handlers look like::"
181
252
msgstr ""
253
+ "Si *o* no es ``NULL``, llama a la devolución de llamada (*callback*) "
254
+ "*visit*, con argumentos *o* y *arg*. Si *visit* retorna un valor distinto de "
255
+ "cero, lo retorna. Usando este macro, los manejadores :c:member:"
256
+ "`~PyTypeObject.tp_traverse` tienen el siguiente aspecto:"
182
257
183
258
#: ../Doc/c-api/gcsupport.rst:137
184
259
msgid ""
185
260
"The :c:member:`~PyTypeObject.tp_clear` handler must be of the :c:type:"
186
261
"`inquiry` type, or ``NULL`` if the object is immutable."
187
262
msgstr ""
263
+ "El manejador :c:member:`~PyTypeObject.tp_clear` debe ser del tipo :c:type:"
264
+ "`query`, o ``NULL`` si el objeto es inmutable."
188
265
189
266
#: ../Doc/c-api/gcsupport.rst:143
190
267
msgid ""
@@ -195,3 +272,9 @@ msgid ""
195
272
"collector will call this method if it detects that this object is involved "
196
273
"in a reference cycle."
197
274
msgstr ""
275
+ "Descarta referencias que pueden haber creado ciclos de referencia. Los "
276
+ "objetos inmutables no tienen que definir este método ya que nunca pueden "
277
+ "crear directamente ciclos de referencia. Tenga en cuenta que el objeto aún "
278
+ "debe ser válido después de llamar a este método (no solo llame a :c:func:"
279
+ "`Py_DECREF` en una referencia). El recolector de basura llamará a este "
280
+ "método si detecta que este objeto está involucrado en un ciclo de referencia."
0 commit comments