@@ -12,7 +12,7 @@ msgstr ""
1212"Report-Msgid-Bugs-To : \n "
1313"POT-Creation-Date : 2024-11-21 16:38-0300\n "
1414"PO-Revision-Date : 2021-12-09 10:29+0800\n "
15- "Last-Translator : Rodrigo Tobar <rtobarc @gmail.com>\n "
15+ "Last-Translator : Erick G. Islas-Osuna <erickisos653 @gmail.com>\n "
1616"Language : es\n "
1717"Language-Team : python-doc-es\n "
1818"Plural-Forms : nplurals=2; plural=(n != 1);\n "
@@ -64,31 +64,30 @@ msgstr ""
6464"la función."
6565
6666#: ../Doc/c-api/function.rst:37
67- #, fuzzy
6867msgid ""
6968"The function's docstring and name are retrieved from the code object. :attr:"
7069"`~function.__module__` is retrieved from *globals*. The argument defaults, "
7170"annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
7271"is set to the same value as the code object's :attr:`~codeobject."
7372"co_qualname` field."
7473msgstr ""
75- "El docstring y el nombre de la función se obtiene del objeto código. "
76- "*__module__* se obtiene de *globals *. El argumento *defaults*, "
77- "*annotations* y *closure* se establecen en ``NULL``. *__qualname__* se "
78- "establece en el mismo valor que el nombre de la función."
74+ "El docstring y el nombre de la función se obtienen del objeto código. "
75+ ":attr:`~function.__module__` se obtiene de *globals*. Los argumentos por defecto, "
76+ "anotaciones y clausura se establecen en ``NULL``. :attr:`~function.__qualname__` "
77+ "se establece en el mismo valor que el campo :attr:`~codeobject.co_qualname` "
78+ "del objeto código."
7979
8080#: ../Doc/c-api/function.rst:46
81- #, fuzzy
8281msgid ""
8382"As :c:func:`PyFunction_New`, but also allows setting the function object's :"
8483"attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
8584"object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
8685"to the same value as the code object's :attr:`~codeobject.co_qualname` field."
8786msgstr ""
8887"Como :c:func:`PyFunction_New`, pero también permite configurar el atributo "
89- "`` __qualname__` ` del objeto función. *qualname* debe ser un objeto unicode o "
90- "``NULL``; si es ``NULL``, el atributo `` __qualname__` ` se establece en el "
91- "mismo valor que su atributo ``__name__`` ."
88+ ":attr:`~function. __qualname__` del objeto función. *qualname* debe ser un objeto unicode o "
89+ "``NULL``; si es ``NULL``, el atributo :attr:`! __qualname__` se establece en el "
90+ "mismo valor que el campo :attr:`~codeobject.co_qualname` del objeto código ."
9291
9392#: ../Doc/c-api/function.rst:57
9493msgid "Return the code object associated with the function object *op*."
@@ -99,22 +98,20 @@ msgid "Return the globals dictionary associated with the function object *op*."
9998msgstr "Retorna el diccionario global asociado con el objeto función *op*."
10099
101100#: ../Doc/c-api/function.rst:67
102- #, fuzzy
103101msgid ""
104102"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
105103"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
106104"*NULL*."
107105msgstr ""
108- "Retorna una referencia tomada ( :term:`borrowed reference`) al atributo "
109- "*__module__* del objeto función *op*. Puede ser *NULL*."
106+ "Retorna una :term:`referencia prestada` al atributo :attr:`~function.__module__` "
107+ "del :ref:` objeto función <user-defined-funcs>` *op*. Puede ser *NULL*."
110108
111109#: ../Doc/c-api/function.rst:71
112- #, fuzzy
113110msgid ""
114111"This is normally a :class:`string <str>` containing the module name, but can "
115112"be set to any other object by Python code."
116113msgstr ""
117- "Éste es normalmente una cadena de caracteres que contiene el nombre del "
114+ "Esto es normalmente una :class:` cadena de caracteres <str>` que contiene el nombre del "
118115"módulo, pero se puede establecer en cualquier otro objeto mediante código "
119116"Python."
120117
@@ -141,13 +138,15 @@ msgstr "Lanza :exc:`SystemError` y retorna ``-1`` en caso de error."
141138
142139#: ../Doc/c-api/function.rst:91
143140msgid "Set the vectorcall field of a given function object *func*."
144- msgstr ""
141+ msgstr "Establece el campo vectorcall de un objeto función dado *func*. "
145142
146143#: ../Doc/c-api/function.rst:93
147144msgid ""
148145"Warning: extensions using this API must preserve the behavior of the "
149146"unaltered (default) vectorcall function!"
150147msgstr ""
148+ "Advertencia: ¡las extensiones que usan esta API deben preservar el comportamiento "
149+ "de la función vectorcall inalterada (por defecto)!"
151150
152151#: ../Doc/c-api/function.rst:100
153152msgid ""
@@ -188,6 +187,10 @@ msgid ""
188187"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
189188"exception."
190189msgstr ""
190+ "Registra *callback* como un observador de función para el intérprete actual. "
191+ "Retorna un ID que puede pasarse a :c:func:`PyFunction_ClearWatcher`. En caso "
192+ "de error (por ejemplo, no hay más IDs de observador disponibles), retorna ``-1`` "
193+ "y establece una excepción."
191194
192195#: ../Doc/c-api/function.rst:138
193196msgid ""
@@ -196,6 +199,10 @@ msgid ""
196199"success, or ``-1`` and set an exception on error (e.g. if the given "
197200"*watcher_id* was never registered.)"
198201msgstr ""
202+ "Limpia el observador identificado por *watcher_id* previamente retornado de :c:func:"
203+ "`PyFunction_AddWatcher` para el intérprete actual. Retorna ``0`` en caso de "
204+ "éxito, o ``-1`` y establece una excepción en caso de error (por ejemplo, si el "
205+ "*watcher_id* dado nunca fue registrado)."
199206
200207#: ../Doc/c-api/function.rst:148
201208msgid ""
@@ -204,10 +211,14 @@ msgid ""
204211"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
205212"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
206213msgstr ""
214+ "Enumeración de posibles eventos de observador de función: - "
215+ "``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
216+ "``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
217+ "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
207218
208219#: ../Doc/c-api/function.rst:160
209220msgid "Type of a function watcher callback function."
210- msgstr ""
221+ msgstr "Tipo de una función callback de observador de función. "
211222
212223#: ../Doc/c-api/function.rst:162
213224msgid ""
@@ -216,12 +227,18 @@ msgid ""
216227"`borrowed reference` to the new value that is about to be stored in *func* "
217228"for the attribute that is being modified."
218229msgstr ""
230+ "Si *event* es ``PyFunction_EVENT_CREATE`` o ``PyFunction_EVENT_DESTROY`` "
231+ "entonces *new_value* será ``NULL``. De lo contrario, *new_value* mantendrá una :term:"
232+ "`referencia prestada` al nuevo valor que está a punto de almacenarse en *func* "
233+ "para el atributo que se está modificando."
219234
220235#: ../Doc/c-api/function.rst:167
221236msgid ""
222237"The callback may inspect but must not modify *func*; doing so could have "
223238"unpredictable effects, including infinite recursion."
224239msgstr ""
240+ "El callback puede inspeccionar pero no debe modificar *func*; hacerlo podrÃa tener "
241+ "efectos impredecibles, incluyendo recursión infinita."
225242
226243#: ../Doc/c-api/function.rst:170
227244msgid ""
@@ -234,6 +251,14 @@ msgid ""
234251"behavior depending on optimization decisions, it does not change the "
235252"semantics of the Python code being executed."
236253msgstr ""
254+ "Si *event* es ``PyFunction_EVENT_CREATE``, entonces el callback se invoca "
255+ "después de que `func` haya sido completamente inicializada. De lo contrario, el callback se invoca "
256+ "antes de que tenga lugar la modificación a *func*, por lo que el estado previo de *func* "
257+ "puede ser inspeccionado. Se permite al tiempo de ejecución optimizar la creación de "
258+ "objetos función cuando sea posible. En tales casos no se emitirá ningún evento. "
259+ "Aunque esto crea la posibilidad de una diferencia observable del comportamiento del tiempo de ejecución "
260+ "dependiendo de las decisiones de optimización, no cambia la "
261+ "semántica del código Python que se está ejecutando."
237262
238263#: ../Doc/c-api/function.rst:179
239264msgid ""
@@ -242,13 +267,20 @@ msgid ""
242267"it from being freed at this time. When the resurrected object is destroyed "
243268"later, any watcher callbacks active at that time will be called again."
244269msgstr ""
270+ "Si *event* es ``PyFunction_EVENT_DESTROY``, tomar una referencia en el "
271+ "callback a la función a punto de ser destruida la resucitará, evitando "
272+ "que sea liberada en este momento. Cuando el objeto resucitado sea destruido "
273+ "más tarde, cualquier callback observador activo en ese momento será llamado de nuevo."
245274
246275#: ../Doc/c-api/function.rst:184
247276msgid ""
248277"If the callback sets an exception, it must return ``-1``; this exception "
249278"will be printed as an unraisable exception using :c:func:"
250279"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
251280msgstr ""
281+ "Si el callback establece una excepción, debe retornar ``-1``; esta excepción "
282+ "se imprimirá como una excepción no elevable usando :c:func:`PyErr_WriteUnraisable`. "
283+ "De lo contrario debe retornar ``0``."
252284
253285#: ../Doc/c-api/function.rst:188
254286msgid ""
@@ -258,16 +290,19 @@ msgid ""
258290"exception unless it saves and clears the exception state first, and restores "
259291"it before returning."
260292msgstr ""
293+ "Puede haber ya una excepción pendiente establecida al entrar al callback. En "
294+ "este caso, el callback debe retornar ``0`` con la misma excepción aún "
295+ "establecida. Esto significa que el callback no puede llamar a ninguna otra API que pueda establecer una "
296+ "excepción a menos que guarde y borre el estado de la excepción primero, y lo restaure antes de retornar."
261297
262298#: ../Doc/c-api/function.rst:8
263299msgid "object"
264- msgstr ""
300+ msgstr "objeto "
265301
266302#: ../Doc/c-api/function.rst:8
267- #, fuzzy
268303msgid "function"
269- msgstr "Objetos función"
304+ msgstr "función"
270305
271306#: ../Doc/c-api/function.rst:20
272307msgid "MethodType (in module types)"
273- msgstr ""
308+ msgstr "MethodType (en module types) "
0 commit comments