Skip to content

Commit 4264afb

Browse files
author
Francisco Mora
committed
Finaliza traducción y agrega termino al diccionario
1 parent e395746 commit 4264afb

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

c-api/weakref.po

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ 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: 2025-02-05 16:21-0300\n"
14+
"PO-Revision-Date: 2025-02-05 16:53-0300\n"
1515
"Last-Translator: srmorita <fr.morac@duocuc.cl>\n"
1616
"Language-Team: python-doc-es (https://mail.python.org/mailman3/lists/docs-"
1717
"es.python.org)\n"
@@ -84,7 +84,6 @@ msgstr ""
8484
"``NULL``, esto retornará ``NULL`` y causará un :exc:`TypeError`."
8585

8686
#: ../Doc/c-api/weakref.rst:44
87-
#, fuzzy
8887
msgid ""
8988
"Return a weak reference proxy object for the object *ob*. This will always "
9089
"return a new reference, but is not guaranteed to create a new object; an "
@@ -103,7 +102,7 @@ msgstr ""
103102
"aceptar un solo parámetro, el cual será el mismo objeto de referencia débil. "
104103
"*callback* también puede ser ``None`` o ``NULL``. Si *ob* no es un objeto "
105104
"que puede ser referido de forma débil, o si *callback* no es invocable, "
106-
"``None``, o ``NULL``, esto retornará ``NULL`` y causará un :exc:`TypeError`."
105+
"``None``, o ``NULL``, esto retornará ``NULL`` y causará un :exc:`TypeError`."
107106

108107
#: ../Doc/c-api/weakref.rst:56
109108
msgid ""
@@ -118,24 +117,26 @@ msgid ""
118117
"On success, set *\\*pobj* to a new :term:`strong reference` to the "
119118
"referenced object and return 1."
120119
msgstr ""
120+
"En caso de éxito, asigna *\\*pobj* en un nuevo :term:`strong reference` al "
121+
"objeto referenciado y asigna 1."
121122

122123
#: ../Doc/c-api/weakref.rst:61
123124
msgid "If the reference is dead, set *\\*pobj* to ``NULL`` and return 0."
124125
msgstr ""
125-
"Si la referencia está inactiva, asigna *\\*pobj* to ``NULL`` y retorna 0."
126+
"Si la referencia está inactiva, asigna *\\*pobj* a ``NULL`` y retorna 0."
126127

127128
#: ../Doc/c-api/weakref.rst:62
128129
msgid "On error, raise an exception and return -1."
129130
msgstr "En caso de error, lanza una excepción y devuelve -1."
130131

131132
#: ../Doc/c-api/weakref.rst:69
132-
#, fuzzy
133133
msgid ""
134134
"Return a :term:`borrowed reference` to the referenced object from a weak "
135135
"reference, *ref*. If the referent is no longer live, returns ``Py_None``."
136136
msgstr ""
137-
"Retorna el objeto referenciado desde una referencia débil, *ref*. Si el "
138-
"referente no está vivo, retornará :const:`Py_None`."
137+
"Retorna un :term:`borrowed reference` del objeto referenciado desde una "
138+
"referencia débil, *ref*. Si el referente ya no está activo, retorna "
139+
"``Py_None``."
139140

140141
#: ../Doc/c-api/weakref.rst:74
141142
msgid ""
@@ -146,19 +147,18 @@ msgid ""
146147
msgstr ""
147148
"Esta función retorna una referencia :term:`borrowed reference` al objeto "
148149
"referenciado. Esto significa que siempre debe llamar a :c:func:`Py_INCREF` "
149-
"sobre el objeto, excepto cuando no pueda ser destruido antes del último uso "
150+
"sobre el objeto excepto cuando no pueda ser destruido antes del último uso "
150151
"de la referencia prestada."
151152

152153
#: ../Doc/c-api/weakref.rst:79 ../Doc/c-api/weakref.rst:87
153154
msgid "Use :c:func:`PyWeakref_GetRef` instead."
154155
msgstr "Utiliza :c:func:`PyWeakref_GetRef` en su lugar."
155156

156157
#: ../Doc/c-api/weakref.rst:85
157-
#, fuzzy
158158
msgid "Similar to :c:func:`PyWeakref_GetObject`, but does no error checking."
159159
msgstr ""
160-
"Similar a :c:func:`PyWeakref_GetObject`, pero implementado como un macro que "
161-
"no verifica errores."
160+
"Similar a :c:func:`PyWeakref_GetObject`, pero no realiza ninguna "
161+
"comprobación de errores."
162162

163163
#: ../Doc/c-api/weakref.rst:93
164164
msgid ""
@@ -174,10 +174,13 @@ msgid ""
174174
"for those references which have one. It returns when all callbacks have been "
175175
"attempted."
176176
msgstr ""
177+
"Esto recorre las referencias débiles de *object* e invoca retrollamadas para "
178+
"aquellas referencias que tengan una. Retorna cuando se han intentado todas "
179+
"las retrollamadas."
177180

178181
#: ../Doc/c-api/weakref.rst:103
179182
msgid "Clears the weakrefs for *object* without calling the callbacks."
180-
msgstr ""
183+
msgstr "Borra las weakrefs para *object* sin llamar a las retrollamadas."
181184

182185
#: ../Doc/c-api/weakref.rst:105
183186
msgid ""
@@ -187,10 +190,19 @@ msgid ""
187190
"and call their callbacks, then the finalizer, and finally this function to "
188191
"clear any weakrefs that may have been created by the finalizer."
189192
msgstr ""
193+
"Esta función es invocada por el gestor :c:member:`~PyTypeObject.tp_dealloc` "
194+
"para tipos con finalizadores (i.e., :meth:`~object.__del__`). El gestor de "
195+
"esos objetos primero llama a :c:func:`PyObject_ClearWeakRefs` para borrar "
196+
"las weakrefs y llamar a sus callbacks, luego al finalizador, y finalmente a "
197+
"esta función para borrar cualquier weakref que pueda haber sido creada por "
198+
"el finalizador."
190199

191200
#: ../Doc/c-api/weakref.rst:111
192201
msgid ""
193202
"In most circumstances, it's more appropriate to "
194203
"use :c:func:`PyObject_ClearWeakRefs` to clear weakrefs instead of this "
195204
"function."
196205
msgstr ""
206+
"En la mayoría de los casos, es más apropiado "
207+
"utilizar :c:func:`PyObject_ClearWeakRefs` para borrar las weakrefs en lugar "
208+
"de esta función."

dictionaries/c-api_weakref.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
weakrefs

0 commit comments

Comments
 (0)