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

Commit3f0b0ed

Browse files
committed
Traducido archivo c-api/gcsupport
1 parentc8f6871 commit3f0b0ed

File tree

1 file changed

+59
-35
lines changed

1 file changed

+59
-35
lines changed

‎c-api/gcsupport.po‎

Lines changed: 59 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version:Python 3.8\n"
1212
"Report-Msgid-Bugs-To:\n"
1313
"POT-Creation-Date:2024-11-21 16:38-0300\n"
14-
"PO-Revision-Date:2021-10-26 08:09+0200\n"
14+
"PO-Revision-Date:2025-10-07 00:51-0600\n"
1515
"Last-Translator:Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language:es\n"
1716
"Language-Team:python-doc-es\n"
18-
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
17+
"Language:es\n"
1918
"MIME-Version:1.0\n"
2019
"Content-Type:text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding:8bit\n"
21+
"Plural-Forms:nplurals=2; plural=(n != 1);\n"
2222
"Generated-By:Babel 2.16.0\n"
23+
"X-Generator:Poedit 3.7\n"
2324

2425
#:../Doc/c-api/gcsupport.rst:6
2526
msgid"Supporting Cyclic Garbage Collection"
@@ -42,7 +43,6 @@ msgstr ""
4243
"proporcionar ningún soporte explícito para la recolección de basura."
4344

4445
#:../Doc/c-api/gcsupport.rst:15
45-
#,fuzzy
4646
msgid""
4747
"To create a container type, the :c:member:`~PyTypeObject.tp_flags` field of "
4848
"the type object must include the :c:macro:`Py_TPFLAGS_HAVE_GC` and provide "
@@ -51,14 +51,14 @@ msgid ""
5151
"implementation must also be provided."
5252
msgstr""
5353
"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 "
54+
"tp_flags` del objeto tipo debe incluir :c:macro:`Py_TPFLAGS_HAVE_GC` y "
5555
"proporcionar una implementación del manejador :c:member:`~PyTypeObject."
56-
"tp_traverse`. Si las instancias del tipo son mutables, también se debe "
56+
"tp_traverse`. Si las instancias del tipo son mutables, también se debe "
5757
"proporcionar una implementación a :c:member:`~PyTypeObject.tp_clear`."
5858

5959
#:../Doc/c-api/gcsupport.rst:24
6060
msgid":c:macro:`Py_TPFLAGS_HAVE_GC`"
61-
msgstr""
61+
msgstr":c:macro:`Py_TPFLAGS_HAVE_GC`"
6262

6363
#:../Doc/c-api/gcsupport.rst:22
6464
msgid""
@@ -76,13 +76,12 @@ msgstr ""
7676
"Los constructores para tipos de contenedores deben cumplir con dos reglas:"
7777

7878
#:../Doc/c-api/gcsupport.rst:28
79-
#,fuzzy
8079
msgid""
8180
"The memory for the object must be allocated using :c:macro:`PyObject_GC_New` "
8281
"or :c:macro:`PyObject_GC_NewVar`."
8382
msgstr""
84-
"La memoria para el objeto debe asignarse usando :c:func:`PyObject_GC_New`o :"
85-
"c:func:`PyObject_GC_NewVar`."
83+
"La memoria para el objeto debe asignarse usando :c:macro:`PyObject_GC_New` "
84+
"o :c:macro:`PyObject_GC_NewVar`."
8685

8786
#:../Doc/c-api/gcsupport.rst:31
8887
msgid""
@@ -126,7 +125,6 @@ msgstr ""
126125
"de su subclase o subclases."
127126

128127
#:../Doc/c-api/gcsupport.rst:47
129-
#,fuzzy
130128
msgid""
131129
"When calling :c:func:`PyType_Ready` or some of the APIs that indirectly call "
132130
"it like :c:func:`PyType_FromSpecWithBases` or :c:func:`PyType_FromSpec` the "
@@ -140,27 +138,25 @@ msgstr ""
140138
"lo llaman como :c:func:`PyType_FromSpecWithBases` o :c:func:"
141139
"`PyType_FromSpec` el intérprete automáticamente llenara los campos :c:member:"
142140
"`~PyTypeObject.tp_flags`, :c:member:`~PyTypeObject.tp_traverse` y :c:member:"
143-
"`~PyTypeObject.tp_clear` si el tiposi el tipohereda de una clase que "
144-
"implementa elprotocolo del recolector de basura y la clase secundaria *no* "
145-
"incluye el*flag* :const:`Py_TPFLAGS_HAVE_GC`."
141+
"`~PyTypeObject.tp_clear` si el tipo hereda de una clase que implementa el "
142+
"protocolo del recolector de basura y la clase secundaria *no* incluye el "
143+
"*flag* :c:macro:`Py_TPFLAGS_HAVE_GC`."
146144

147145
#:../Doc/c-api/gcsupport.rst:57
148-
#,fuzzy
149146
msgid""
150147
"Analogous to :c:macro:`PyObject_New` but for container objects with the :c:"
151148
"macro:`Py_TPFLAGS_HAVE_GC` flag set."
152149
msgstr""
153-
"Análogo a :c:func:`PyObject_New` pero para objetos de contenedor con el "
154-
"*flag* :const:`Py_TPFLAGS_HAVE_GC` establecido."
150+
"Análogo a :c:macro:`PyObject_New` pero para objetos de contenedor con el "
151+
"*flag* :c:macro:`Py_TPFLAGS_HAVE_GC` establecido."
155152

156153
#:../Doc/c-api/gcsupport.rst:62
157-
#,fuzzy
158154
msgid""
159155
"Analogous to :c:macro:`PyObject_NewVar` but for container objects with the :"
160156
"c:macro:`Py_TPFLAGS_HAVE_GC` flag set."
161157
msgstr""
162-
"Análogo a :c:func:`PyObject_NewVar` pero para objetos de contenedor con el "
163-
"*flag* :const:`Py_TPFLAGS_HAVE_GC` establecido."
158+
"Análogo a :c:macro:`PyObject_NewVar` pero para objetos de contenedor con el "
159+
"*flag* :c:macro:`Py_TPFLAGS_HAVE_GC` establecido."
164160

165161
#:../Doc/c-api/gcsupport.rst:67
166162
msgid""
@@ -169,12 +165,18 @@ msgid ""
169165
"The allocated memory is initialized to zeros, except for the :c:type:`Python "
170166
"object header <PyObject>`."
171167
msgstr""
168+
"Análogo a :c:macro:`PyObject_GC_New` pero asigna bytes de *extra_size* al "
169+
"final del objeto (en el desplazamiento :c:member:`~PyTypeObject."
170+
"tp_basicsize`). La memoria asignada se inicializa a ceros, excepto para el :"
171+
"c:type:`encabezado del objeto Python <PyObject>`."
172172

173173
#:../Doc/c-api/gcsupport.rst:73
174174
msgid""
175175
"The extra data will be deallocated with the object, but otherwise it is not "
176176
"managed by Python."
177177
msgstr""
178+
"Los datos extra se reasignarán con el objeto, pero por lo demás no se "
179+
"gestionan por Python."
178180

179181
#:../Doc/c-api/gcsupport.rst:77
180182
msgid""
@@ -183,23 +185,28 @@ msgid ""
183185
"number of fields, prefer using :c:type:`PyVarObject` and :c:member:"
184186
"`~PyTypeObject.tp_itemsize` instead."
185187
msgstr""
188+
"La función está marcada como inestable porque aún no se ha decidido el "
189+
"mecanismo final para reservar datos extra después de una instancia. Para "
190+
"asignar un número variable de campos, se recomienda usar en su lugar :c:type:"
191+
"`PyVarObject` y :c:member:`~PyTypeObject.tp_itemsize`."
186192

187193
#:../Doc/c-api/gcsupport.rst:88
188-
#,fuzzy
189194
msgid""
190195
"Resize an object allocated by :c:macro:`PyObject_NewVar`. Returns the "
191196
"resized object of type ``TYPE*`` (refers to any C type) or ``NULL`` on "
192197
"failure."
193198
msgstr""
194-
"Cambia el tamaño de un objeto asignado por :c:func:`PyObject_NewVar`. "
195-
"Retorna el objeto redimensionadoo ``NULL``en caso de falla. *op* aún no "
196-
"debe ser rastreado por el recolectordebasura."
199+
"Cambia el tamaño de un objeto asignado por :c:macro:`PyObject_NewVar`. "
200+
"Retorna el objeto redimensionadode tipo ``TYPE*``(se refiere a cualquier "
201+
"tipo de C) o ``NULL`` en casodefalla."
197202

198203
#:../Doc/c-api/gcsupport.rst:92
199204
msgid""
200205
"*op* must be of type :c:expr:`PyVarObject *` and must not be tracked by the "
201206
"collector yet. *newsize* must be of type :c:type:`Py_ssize_t`."
202207
msgstr""
208+
"*op* debe ser de tipo :c:expr:`PyVarObject *` y aún no debe ser rastreado "
209+
"por el recolector. *newsize* debe ser de tipo :c:type:`Py_ssize_t`."
203210

204211
#:../Doc/c-api/gcsupport.rst:99
205212
msgid""
@@ -257,13 +264,12 @@ msgid "This is analogous to the Python function :func:`gc.is_finalized`."
257264
msgstr"Esto es análogo a la función de Python :func:`gc.is_finalized`."
258265

259266
#:../Doc/c-api/gcsupport.rst:136
260-
#,fuzzy
261267
msgid""
262268
"Releases memory allocated to an object using :c:macro:`PyObject_GC_New` or :"
263269
"c:macro:`PyObject_GC_NewVar`."
264270
msgstr""
265-
"Libera memoria asignada a un objeto usando :c:func:`PyObject_GC_New` o :c:"
266-
"func:`PyObject_GC_NewVar`."
271+
"Libera memoria asignada a un objeto usando :c:macro:`PyObject_GC_New` o :c:"
272+
"macro:`PyObject_GC_NewVar`."
267273

268274
#:../Doc/c-api/gcsupport.rst:142
269275
msgid""
@@ -283,13 +289,12 @@ msgstr ""
283289
"`~PyTypeObject.tp_traverse` no sea válido."
284290

285291
#:../Doc/c-api/gcsupport.rst:151
286-
#,fuzzy
287292
msgid""
288293
"The :c:func:`!_PyObject_GC_TRACK` and :c:func:`!_PyObject_GC_UNTRACK` macros "
289294
"have been removed from the public C API."
290295
msgstr""
291-
"Los macros :c:func:`_PyObject_GC_TRACK` y :c:func:`_PyObject_GC_UNTRACK` se "
292-
"han eliminado de la API pública de C."
296+
"Los macros :c:func:`!_PyObject_GC_TRACK` y :c:func:`!_PyObject_GC_UNTRACK` "
297+
"sehan eliminado de la API pública de C."
293298

294299
#:../Doc/c-api/gcsupport.rst:154
295300
msgid""
@@ -372,6 +377,13 @@ msgid ""
372377
" return 0;\n"
373378
"}"
374379
msgstr""
380+
"static int\n"
381+
"my_traverse(Noddy *self, visitproc visit, void *arg)\n"
382+
"{\n"
383+
" Py_VISIT(self->foo);\n"
384+
" Py_VISIT(self->bar);\n"
385+
" return 0;\n"
386+
"}"
375387

376388
#:../Doc/c-api/gcsupport.rst:198
377389
msgid""
@@ -456,37 +468,43 @@ msgstr ""
456468
"Retorna el estado actual, 0 para deshabilitado y 1 para habilitado."
457469

458470
#:../Doc/c-api/gcsupport.rst:256
459-
#,fuzzy
460471
msgid"Querying Garbage Collector State"
461-
msgstr"Controlar el estado del recolector de basura"
472+
msgstr"Consultar el estado del recolector de basura"
462473

463474
#:../Doc/c-api/gcsupport.rst:258
464-
#,fuzzy
465475
msgid""
466476
"The C-API provides the following interface for querying information about "
467477
"the garbage collector."
468478
msgstr""
469-
"La C-API proporcionalas siguientes funciones paracontrolar las ejecuciones "
470-
"de recolección de basura."
479+
"La C-API proporcionala siguiente interfaz paraconsultar información sobre "
480+
"el recolector de basura."
471481

472482
#:../Doc/c-api/gcsupport.rst:263
473483
msgid""
474484
"Run supplied *callback* on all live GC-capable objects. *arg* is passed "
475485
"through to all invocations of *callback*."
476486
msgstr""
487+
"Ejecuta la *callback* suministrada en todos los objetos activos con "
488+
"capacidad para GC. *arg* se pasa a todas las invocaciones de *callback*."
477489

478490
#:../Doc/c-api/gcsupport.rst:267
479491
msgid""
480492
"If new objects are (de)allocated by the callback it is undefined if they "
481493
"will be visited."
482494
msgstr""
495+
"Si la devolución de llamada (des)asigna nuevos objetos, no está definido si "
496+
"serán visitados."
483497

484498
#:../Doc/c-api/gcsupport.rst:270
485499
msgid""
486500
"Garbage collection is disabled during operation. Explicitly running a "
487501
"collection in the callback may lead to undefined behaviour e.g. visiting the "
488502
"same objects multiple times or not at all."
489503
msgstr""
504+
"La recolección de basura está deshabilitada durante la operación. Ejecutar "
505+
"una recolección explícitamente en la devolución de llamada puede provocar un "
506+
"comportamiento indefinido, por ejemplo, visitar los mismos objetos varias "
507+
"veces o no visitarlos en absoluto."
490508

491509
#:../Doc/c-api/gcsupport.rst:278
492510
msgid""
@@ -496,3 +514,9 @@ msgid ""
496514
"``1`` to stop iteration. Other return values are reserved for now so "
497515
"behavior on returning anything else is undefined."
498516
msgstr""
517+
"Tipo de la función de visitante que se pasará a :c:func:"
518+
"`PyUnstable_GC_VisitObjects`. *arg* es el mismo que el *arg* pasado a "
519+
"``PyUnstable_GC_VisitObjects``. Retorna ``0`` para continuar la iteración, "
520+
"retorna ``1`` para detener la iteración. Los demás valores de retorno se "
521+
"reservan por ahora, por lo que el comportamiento al retornar cualquier otro "
522+
"valor no está definido."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp