Skip to content

Commit 7dc87e5

Browse files
committed
Complete translation of c-api/type.po - Fixes #3795
1 parent f7c416f commit 7dc87e5

1 file changed

Lines changed: 87 additions & 30 deletions

File tree

c-api/type.po

Lines changed: 87 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgstr ""
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2026-02-26 18:44-0300\n"
1414
"PO-Revision-Date: 2026-02-15 15:18-0300\n"
15-
"Last-Translator: Carlos A. Crespo <lvccrespo@gmail.com>\n"
15+
"Last-Translator: Mariana Garcia <mariana2906garcia@gmail.com>"
1616
"Language: es\n"
1717
"Language-Team: python-doc-es\n"
1818
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -142,6 +142,9 @@ msgid ""
142142
"In free-threaded builds, :c:func:`PyType_AddWatcher` is not thread-safe, so "
143143
"it must be called at start up (before spawning the first thread)."
144144
msgstr ""
145+
"En compilaciones multi-hilo libres, :c:func:`PyType_AddWatcher` no es "
146+
"seguro para hilos, por lo que debe ser llamado al inicio (antes de crear el "
147+
"primer hilo)."
145148

146149
#: ../Doc/c-api/type.rst:93
147150
msgid ""
@@ -234,7 +237,6 @@ msgstr ""
234237
"para hacer la misma verificación que :func:`issubclass` haría."
235238

236239
#: ../Doc/c-api/type.rst:154
237-
#, fuzzy
238240
msgid ""
239241
"Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type "
240242
"object. Uses Python's default memory allocation mechanism to allocate "
@@ -243,14 +245,17 @@ msgid ""
243245
msgstr ""
244246
"Controlador genérico para la ranura :c:member:`~PyTypeObject.tp_alloc` de un "
245247
"objeto tipo. Usa el mecanismo de asignación de memoria predeterminado de "
246-
"Python para asignar una nueva instancia e inicializar todo su contenido a "
247-
"``NULL``."
248+
"Python para asignar memoria para una nueva instancia, pone la memoria a "
249+
"cero, e inicializa la memoria como si se llamara a :c:func:`PyObject_Init` "
250+
"o :c:func:`PyObject_InitVar`."
248251

249252
#: ../Doc/c-api/type.rst:159
250253
msgid ""
251254
"Do not call this directly to allocate memory for an object; call the type's :"
252255
"c:member:`~PyTypeObject.tp_alloc` slot instead."
253256
msgstr ""
257+
"No llames a esto directamente para asignar memoria para un objeto; llama a "
258+
"la ranura :c:member:`~PyTypeObject.tp_alloc` del tipo en su lugar."
254259

255260
#: ../Doc/c-api/type.rst:162
256261
msgid ""
@@ -263,17 +268,25 @@ msgid ""
263268
"the memory is guaranteed to be zeroed before initialization) and should be "
264269
"paired with :c:func:`PyObject_Free` in :c:member:`~PyTypeObject.tp_free`."
265270
msgstr ""
271+
"Para tipos que soportan recolección de basura (es decir, la bandera :c:macro:"
272+
"`Py_TPFLAGS_HAVE_GC` está establecida), esta función se comporta como :c:"
273+
"macro:`PyObject_GC_New` o :c:macro:`PyObject_GC_NewVar` (excepto que se "
274+
"garantiza que la memoria se pone a cero antes de la inicialización), y debe "
275+
"estar emparejada con :c:func:`PyObject_GC_Del` en :c:member:"
276+
"`~PyTypeObject.tp_free`. De lo contrario, se comporta como :c:macro:"
277+
"`PyObject_New` o :c:macro:`PyObject_NewVar` (excepto que se garantiza que la "
278+
"memoria se pone a cero antes de la inicialización) y debe estar emparejada "
279+
"con :c:func:`PyObject_Free` en :c:member:`~PyTypeObject.tp_free`."
266280

267281
#: ../Doc/c-api/type.rst:174
268-
#, fuzzy
269282
msgid ""
270283
"Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type "
271284
"object. Creates a new instance using the type's :c:member:`~PyTypeObject."
272285
"tp_alloc` slot and returns the resulting object."
273286
msgstr ""
274287
"Controlador genérico para la ranura :c:member:`~PyTypeObject.tp_new` de un "
275-
"objeto tipo. Crea una nueva instancia utilizando la ranura del tipo :c:"
276-
"member:`~PyTypeObject.tp_alloc`."
288+
"objeto tipo. Crea una nueva instancia utilizando la ranura :c:member:"
289+
"`~PyTypeObject.tp_alloc` del tipo y retorna el objeto resultante."
277290

278291
#: ../Doc/c-api/type.rst:180
279292
msgid ""
@@ -456,38 +469,49 @@ msgid ""
456469
"and will be valid as long as you hold a reference to *type*. Do not release "
457470
"it with :c:func:`Py_DECREF` or similar."
458471
msgstr ""
472+
"La referencia retornada es :term:`prestada <borrowed reference>` de *type*, "
473+
"y será válida mientras mantengas una referencia a *type*. No la liberes con :"
474+
"c:func:`Py_DECREF` o similar."
459475

460476
#: ../Doc/c-api/type.rst:293
461477
msgid ""
462478
"Find the first superclass in *type*'s :term:`method resolution order` whose :"
463479
"c:macro:`Py_tp_token` token is equal to the given one."
464480
msgstr ""
481+
"Encuentra la primera superclase en el :term:`method resolution order` de "
482+
"*type* cuyo token :c:macro:`Py_tp_token` sea igual al dado."
465483

466484
#: ../Doc/c-api/type.rst:296
467485
msgid ""
468486
"If found, set *\\*result* to a new :term:`strong reference` to it and return "
469487
"``1``."
470488
msgstr ""
489+
"Si se encuentra, establece *\\*result* en una nueva :term:`strong reference` "
490+
"a él y retorna ``1``."
471491

472492
#: ../Doc/c-api/type.rst:298
473493
msgid "If not found, set *\\*result* to ``NULL`` and return ``0``."
474-
msgstr ""
494+
msgstr "Si no se encuentra, establece *\\*result* en ``NULL`` y retorna ``0``."
475495

476496
#: ../Doc/c-api/type.rst:299
477497
msgid ""
478498
"On error, set *\\*result* to ``NULL`` and return ``-1`` with an exception "
479499
"set."
480500
msgstr ""
501+
"En caso de error, establece *\\*result* en ``NULL`` y retorna ``-1`` con una "
502+
"excepción establecida."
481503

482504
#: ../Doc/c-api/type.rst:302
483505
msgid ""
484506
"The *result* argument may be ``NULL``, in which case *\\*result* is not set. "
485507
"Use this if you need only the return value."
486508
msgstr ""
509+
"El argumento *result* puede ser ``NULL``, en cuyo caso *\\*result* no se "
510+
"establece. Usa esto si solo necesitas el valor de retorno."
487511

488512
#: ../Doc/c-api/type.rst:305
489513
msgid "The *token* argument may not be ``NULL``."
490-
msgstr ""
514+
msgstr "El argumento *token* no puede ser ``NULL``."
491515

492516
#: ../Doc/c-api/type.rst:311
493517
msgid "Attempt to assign a version tag to the given type."
@@ -536,6 +560,8 @@ msgid ""
536560
"Metaclasses that override :c:member:`~PyTypeObject.tp_new` are not "
537561
"supported, except if ``tp_new`` is ``NULL``."
538562
msgstr ""
563+
"Las metaclases que sobreescriben :c:member:`~PyTypeObject.tp_new` no están "
564+
"soportadas, excepto si ``tp_new`` es ``NULL``."
539565

540566
#: ../Doc/c-api/type.rst:337
541567
msgid ""
@@ -626,23 +652,23 @@ msgstr ""
626652

627653
#: ../Doc/c-api/type.rst:383 ../Doc/c-api/type.rst:404
628654
#: ../Doc/c-api/type.rst:424
629-
#, fuzzy
630655
msgid ""
631656
"The :c:member:`~PyTypeObject.tp_new` of the metaclass is *ignored*. which "
632657
"may result in incomplete initialization. Creating classes whose metaclass "
633658
"overrides :c:member:`~PyTypeObject.tp_new` is deprecated."
634659
msgstr ""
635-
"El :c:member:`~PyTypeObject.tp_new` de la metaclase es *ignorado*. lo que "
636-
"puede resultar en una inicialización incompleta. La creación de clases cuya "
637-
"metaclase sobrescribe :c:member:`~PyTypeObject.tp_new` está obsoleta y en "
638-
"Python 3.14+ ya no será permitida."
660+
"El :c:member:`~PyTypeObject.tp_new` de la metaclase es *ignorado*, lo que "
661+
"puede resultar en una inicialización incompleta. Crear clases cuya metaclase "
662+
"sobreescribe :c:member:`~PyTypeObject.tp_new` está deprecado."
639663

640664
#: ../Doc/c-api/type.rst:390 ../Doc/c-api/type.rst:411
641665
#: ../Doc/c-api/type.rst:431
642666
msgid ""
643667
"Creating classes whose metaclass overrides :c:member:`~PyTypeObject.tp_new` "
644668
"is no longer allowed."
645669
msgstr ""
670+
"Ya no está permitido crear clases cuya metaclase sobreescriba :c:member:"
671+
"`~PyTypeObject.tp_new`."
646672

647673
#: ../Doc/c-api/type.rst:395
648674
msgid "Equivalent to ``PyType_FromMetaclass(NULL, NULL, spec, bases)``."
@@ -663,24 +689,29 @@ msgstr ""
663689
"retornaban instancias de :class:`type`."
664690

665691
#: ../Doc/c-api/type.rst:436
666-
#, fuzzy
667692
msgid ""
668693
"Make a type immutable: set the :c:macro:`Py_TPFLAGS_IMMUTABLETYPE` flag."
669-
msgstr "Con la bandera :c:macro:`Py_TPFLAGS_ITEMS_AT_END`."
694+
msgstr ""
695+
"Hace que un tipo sea inmutable: establece la bandera :c:macro:"
696+
"`Py_TPFLAGS_IMMUTABLETYPE`."
670697

671698
#: ../Doc/c-api/type.rst:438
672699
msgid "All base classes of *type* must be immutable."
673-
msgstr ""
700+
msgstr "Todas las clases base de *type* deben ser inmutables."
674701

675702
#: ../Doc/c-api/type.rst:440
676703
msgid "On success, return ``0``. On error, set an exception and return ``-1``."
677704
msgstr ""
705+
"En caso de éxito, retorna ``0``. En caso de error, establece una excepción y "
706+
"retorna ``-1``."
678707

679708
#: ../Doc/c-api/type.rst:443
680709
msgid ""
681710
"The type must not be used before it's made immutable. For example, type "
682711
"instances must not be created before the type is made immutable."
683712
msgstr ""
713+
"El tipo no debe ser usado antes de que sea inmutable. Por ejemplo, las "
714+
"instancias de tipo no deben ser creadas antes de que el tipo sea inmutable."
684715

685716
#: ../Doc/c-api/type.rst:459
686717
msgid "Structure defining a type's behavior."
@@ -708,7 +739,6 @@ msgstr ""
708739
"heredado."
709740

710741
#: ../Doc/c-api/type.rst:473
711-
#, fuzzy
712742
msgid ""
713743
"If negative, the absolute value specifies how much space instances of the "
714744
"class need *in addition* to the superclass. Use :c:func:"
@@ -720,7 +750,9 @@ msgstr ""
720750
"Si es negativo, el valor absoluto especifica cuánto espacio necesitan las "
721751
"instancias de la clase *además* de la superclase. Use :c:func:"
722752
"`PyObject_GetTypeData` para obtener un puntero a la memoria específica de la "
723-
"subclase reservada de esta manera."
753+
"subclase reservada de esta manera. Para un :c:member:`!basicsize` negativo, "
754+
"Python insertará relleno cuando sea necesario para cumplir con los requisitos "
755+
"de alineación de :c:member:`~PyTypeObject.tp_basicsize`."
724756

725757
#: ../Doc/c-api/type.rst:483
726758
msgid "Previously, this field could not be negative."
@@ -845,18 +877,19 @@ msgid ""
845877
"An additional slot is supported that does not correspond to a :c:type:`!"
846878
"PyTypeObject` struct field:"
847879
msgstr ""
880+
"Se soporta una ranura adicional que no corresponde a un campo de estructura :"
881+
"c:type:`!PyTypeObject`:"
848882

849883
#: ../Doc/c-api/type.rst:549
850884
msgid ":c:data:`Py_tp_token`"
851885
msgstr ""
852886

853887
#: ../Doc/c-api/type.rst:551
854-
#, fuzzy
855888
msgid ""
856889
"The following “offset” fields cannot be set using :c:type:`PyType_Slot`:"
857890
msgstr ""
858-
"Los siguientes campos de desplazamiento no se pueden configurar usando :c:"
859-
"type:`PyType_Slot`:"
891+
"Los siguientes campos de \"desplazamiento\" no se pueden configurar usando :"
892+
"c:type:`PyType_Slot`:"
860893

861894
#: ../Doc/c-api/type.rst:553
862895
msgid ""
@@ -895,23 +928,21 @@ msgstr ""
895928
"ref:`documentación PyMemberDef <pymemberdef-offsets>` para detalles."
896929

897930
#: ../Doc/c-api/type.rst:567
898-
#, fuzzy
899931
msgid ""
900932
"The following internal fields cannot be set at all when creating a heap type:"
901933
msgstr ""
902-
"Los siguientes campos no se pueden configurar en absoluto al crear un tipo "
903-
"heap:"
934+
"Los siguientes campos internos no se pueden configurar en absoluto al crear "
935+
"un tipo heap:"
904936

905937
#: ../Doc/c-api/type.rst:570
906-
#, fuzzy
907938
msgid ""
908939
":c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject.tp_mro`, :c:"
909940
"member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject.tp_subclasses`, "
910941
"and :c:member:`~PyTypeObject.tp_weaklist`."
911942
msgstr ""
912-
"Campos internos: :c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject."
913-
"tp_mro`, :c:member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject."
914-
"tp_subclasses`, y :c:member:`~PyTypeObject.tp_weaklist`."
943+
":c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject.tp_mro`, :c:"
944+
"member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject.tp_subclasses`, "
945+
"y :c:member:`~PyTypeObject.tp_weaklist`."
915946

916947
#: ../Doc/c-api/type.rst:576
917948
msgid ""
@@ -944,6 +975,9 @@ msgid ""
944975
"The field :c:member:`~PyTypeObject.tp_vectorcall` can now set using "
945976
"``Py_tp_vectorcall``. See the field's documentation for details."
946977
msgstr ""
978+
"El campo :c:member:`~PyTypeObject.tp_vectorcall` ahora puede ser configurado "
979+
"usando ``Py_tp_vectorcall``. Consulta la documentación del campo para más "
980+
"detalles."
947981

948982
#: ../Doc/c-api/type.rst:596
949983
msgid ""
@@ -956,68 +990,91 @@ msgstr ""
956990
#: ../Doc/c-api/type.rst:599
957991
msgid "*pfunc* values may not be ``NULL``, except for the following slots:"
958992
msgstr ""
993+
"Los valores de *pfunc* no pueden ser ``NULL``, excepto para las siguientes "
994+
"ranuras:"
959995

960996
#: ../Doc/c-api/type.rst:601
961997
msgid "``Py_tp_doc``"
962-
msgstr ""
998+
msgstr "``Py_tp_doc``"
963999

9641000
#: ../Doc/c-api/type.rst:602
9651001
msgid ""
9661002
":c:data:`Py_tp_token` (for clarity, prefer :c:data:`Py_TP_USE_SPEC` rather "
9671003
"than ``NULL``)"
9681004
msgstr ""
1005+
":c:data:`Py_tp_token` (para claridad, prefiere :c:data:`Py_TP_USE_SPEC` en "
1006+
"lugar de ``NULL``)"
9691007

9701008
#: ../Doc/c-api/type.rst:607
9711009
msgid ""
9721010
"A :c:member:`~PyType_Slot.slot` that records a static memory layout ID for a "
9731011
"class."
9741012
msgstr ""
1013+
"Una :c:member:`~PyType_Slot.slot` que registra una ID de distribución de "
1014+
"memoria estática para una clase."
9751015

9761016
#: ../Doc/c-api/type.rst:610
9771017
msgid ""
9781018
"If the :c:type:`PyType_Spec` of the class is statically allocated, the token "
9791019
"can be set to the spec using the special value :c:data:`Py_TP_USE_SPEC`:"
9801020
msgstr ""
1021+
"Si el :c:type:`PyType_Spec` de la clase se asigna estáticamente, el token "
1022+
"puede establecerse en el spec usando el valor especial :c:data:`Py_TP_USE_SPEC`:"
9811023

9821024
#: ../Doc/c-api/type.rst:614
9831025
msgid ""
9841026
"static PyType_Slot foo_slots[] = {\n"
9851027
" {Py_tp_token, Py_TP_USE_SPEC},"
9861028
msgstr ""
1029+
"static PyType_Slot foo_slots[] = {\n"
1030+
" {Py_tp_token, Py_TP_USE_SPEC},"
9871031

9881032
#: ../Doc/c-api/type.rst:619
9891033
msgid "It can also be set to an arbitrary pointer, but you must ensure that:"
9901034
msgstr ""
1035+
"También se puede establecer en un puntero arbitrario, pero debes asegurarte "
1036+
"de que:"
9911037

9921038
#: ../Doc/c-api/type.rst:621
9931039
msgid ""
9941040
"The pointer outlives the class, so it's not reused for something else while "
9951041
"the class exists."
9961042
msgstr ""
1043+
"El puntero sobrevive a la clase, por lo que no se reutiliza para otra cosa "
1044+
"mientras la clase exista."
9971045

9981046
#: ../Doc/c-api/type.rst:623
9991047
msgid ""
10001048
"It \"belongs\" to the extension module where the class lives, so it will not "
10011049
"clash with other extensions."
10021050
msgstr ""
1051+
"\"Pertenece\" al módulo de extensión donde vive la clase, por lo que no "
1052+
"entrará en conflicto con otras extensiones."
10031053

10041054
#: ../Doc/c-api/type.rst:626
10051055
msgid ""
10061056
"Use :c:func:`PyType_GetBaseByToken` to check if a class's superclass has a "
10071057
"given token -- that is, check whether the memory layout is compatible."
10081058
msgstr ""
1059+
"Usa :c:func:`PyType_GetBaseByToken` para verificar si la superclase de una "
1060+
"clase tiene un token dado -- es decir, verificar si la distribución de "
1061+
"memoria es compatible."
10091062

10101063
#: ../Doc/c-api/type.rst:629
10111064
msgid ""
10121065
"To get the token for a given class (without considering superclasses), use :"
10131066
"c:func:`PyType_GetSlot` with ``Py_tp_token``."
10141067
msgstr ""
1068+
"Para obtener el token de una clase dada (sin considerar las superclases), "
1069+
"usa :c:func:`PyType_GetSlot` con ``Py_tp_token``."
10151070

10161071
#: ../Doc/c-api/type.rst:638
10171072
msgid ""
10181073
"Used as a value with :c:data:`Py_tp_token` to set the token to the class's :"
10191074
"c:type:`PyType_Spec`. Expands to ``NULL``."
10201075
msgstr ""
1076+
"Se usa como un valor con :c:data:`Py_tp_token` para establecer el token en :"
1077+
"c:type:`PyType_Spec` de la clase. Se expande a ``NULL``."
10211078

10221079
#: ../Doc/c-api/type.rst:8
10231080
msgid "object"

0 commit comments

Comments
 (0)