@@ -36,22 +36,22 @@ msgstr "La estructura C utilizada para las funciones."
3636#: ../Doc/c-api/function.rst:22
3737msgid ""
3838"This is an instance of :c:type:`PyTypeObject` and represents the Python "
39- "function type. It is exposed to Python programmers as ``types. "
40- "FunctionType``."
39+ "function type. It is exposed to Python programmers as "
40+ "``types. FunctionType``."
4141msgstr ""
4242"Esta es una instancia de :c:type:`PyTypeObject` y representa el tipo función "
43- "de Python. Está expuesto a los programadores de Python como ``types. "
44- "FunctionType``."
43+ "de Python. Está expuesto a los programadores de Python como "
44+ "``types. FunctionType``."
4545
4646#: ../Doc/c-api/function.rst:28
4747msgid ""
48- "Return true if *o* is a function object (has type :c:data: "
49- "`PyFunction_Type`). The parameter must not be ``NULL``. This function "
50- "always succeeds."
48+ "Return true if *o* is a function object (has "
49+ "type :c:data: `PyFunction_Type`). The parameter must not be ``NULL``. This "
50+ "function always succeeds."
5151msgstr ""
52- "Retorna verdadero si *o* es un objeto función (tiene tipo :c:data: "
53- "`PyFunction_Type`). El parámetro no debe ser ``NULL``. Esta función siempre "
54- "finaliza con éxito."
52+ "Retorna verdadero si *o* es un objeto función (tiene "
53+ "tipo :c:data: `PyFunction_Type`). El parámetro no debe ser ``NULL``. Esta "
54+ "función siempre finaliza con éxito."
5555
5656#: ../Doc/c-api/function.rst:34
5757msgid ""
@@ -65,29 +65,31 @@ msgstr ""
6565
6666#: ../Doc/c-api/function.rst:37
6767msgid ""
68- "The function's docstring and name are retrieved from the code object. :attr: "
69- "`~function.__module__` is retrieved from *globals*. The argument defaults, "
70- "annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
71- "is set to the same value as the code object's :attr:`~codeobject. "
72- "co_qualname` field."
68+ "The function's docstring and name are retrieved from the code "
69+ "object. :attr: `~function.__module__` is retrieved from *globals*. The "
70+ "argument defaults, annotations and closure are set to "
71+ "``NULL``. :attr:`~function.__qualname__` is set to the same value as the "
72+ "code object's :attr:`~codeobject. co_qualname` field."
7373msgstr ""
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."
74+ "El docstring y el nombre de la función se obtienen del objeto "
75+ "código. :attr:`~function.__module__` se obtiene de *globals*. Los argumentos "
76+ "por defecto, anotaciones y clausura se establecen en "
77+ "``NULL``. :attr:`~function.__qualname__` se establece en el mismo valor que "
78+ "el campo :attr:`~codeobject.co_qualname` del objeto código."
7979
8080#: ../Doc/c-api/function.rst:46
8181msgid ""
82- "As :c:func:`PyFunction_New`, but also allows setting the function object's :"
83- "attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
84- "object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
85- "to the same value as the code object's :attr:`~codeobject.co_qualname` field."
82+ "As :c:func:`PyFunction_New`, but also allows setting the function "
83+ "object's :attr:`~function.__qualname__` attribute. *qualname* should be a "
84+ "unicode object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute "
85+ "is set to the same value as the code "
86+ "object's :attr:`~codeobject.co_qualname` field."
8687msgstr ""
87- "Como :c:func:`PyFunction_New`, pero también permite configurar el atributo "
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."
88+ "Como :c:func:`PyFunction_New`, pero también permite configurar el "
89+ "atributo :attr:`~function.__qualname__` del objeto función. *qualname* debe "
90+ "ser un objeto unicode o ``NULL``; si es ``NULL``, el atributo :attr:`!"
91+ "__qualname__` se establece en el mismo valor que el "
92+ "campo :attr:`~codeobject.co_qualname` del objeto código."
9193
9294#: ../Doc/c-api/function.rst:57
9395msgid "Return the code object associated with the function object *op*."
@@ -103,17 +105,18 @@ msgid ""
103105"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
104106"*NULL*."
105107msgstr ""
106- "Retorna una :term:`referencia prestada` al atributo :attr:`~function.__module__` "
107- "del :ref:`objeto función <user-defined-funcs>` *op*. Puede ser *NULL*."
108+ "Retorna una :term:`referencia prestada` al "
109+ "atributo :attr:`~function.__module__` del :ref:`objeto función <user-defined-"
110+ "funcs>` *op*. Puede ser *NULL*."
108111
109112#: ../Doc/c-api/function.rst:71
110113msgid ""
111114"This is normally a :class:`string <str>` containing the module name, but can "
112115"be set to any other object by Python code."
113116msgstr ""
114- "Esto es normalmente una :class:`cadena de caracteres <str>` que contiene el nombre del "
115- "módulo, pero se puede establecer en cualquier otro objeto mediante código "
116- "Python."
117+ "Esto es normalmente una :class:`cadena de caracteres <str>` que contiene el "
118+ "nombre del módulo, pero se puede establecer en cualquier otro objeto "
119+ "mediante código Python."
117120
118121#: ../Doc/c-api/function.rst:77
119122msgid ""
@@ -145,8 +148,8 @@ msgid ""
145148"Warning: extensions using this API must preserve the behavior of the "
146149"unaltered (default) vectorcall function!"
147150msgstr ""
148- "Advertencia: ¡las extensiones que usan esta API deben preservar el comportamiento "
149- "de la función vectorcall inalterada (por defecto)!"
151+ "Advertencia: ¡las extensiones que usan esta API deben preservar el "
152+ "comportamiento de la función vectorcall inalterada (por defecto)!"
150153
151154#: ../Doc/c-api/function.rst:100
152155msgid ""
@@ -189,20 +192,20 @@ msgid ""
189192msgstr ""
190193"Registra *callback* como un observador de función para el intérprete actual. "
191194"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."
195+ "de error (por ejemplo, no hay más IDs de observador disponibles), retorna "
196+ "``-1`` y establece una excepción."
194197
195198#: ../Doc/c-api/function.rst:138
196199msgid ""
197- "Clear watcher identified by *watcher_id* previously returned from :c:func: "
198- "`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
199- "success, or ``-1`` and set an exception on error (e.g. if the given "
200- "*watcher_id* was never registered.)"
200+ "Clear watcher identified by *watcher_id* previously returned "
201+ "from :c:func: `PyFunction_AddWatcher` for the current interpreter. Return "
202+ "``0`` on success, or ``-1`` and set an exception on error (e.g. if the "
203+ "given *watcher_id* was never registered.)"
201204msgstr ""
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)."
205+ "Limpia el observador identificado por *watcher_id* previamente retornado "
206+ "de :c:func: `PyFunction_AddWatcher` para el intérprete actual. Retorna ``0`` "
207+ "en caso de éxito, o ``-1`` y establece una excepción en caso de error (por "
208+ "ejemplo, si el *watcher_id* dado nunca fue registrado)."
206209
207210#: ../Doc/c-api/function.rst:148
208211msgid ""
@@ -223,22 +226,22 @@ msgstr "Tipo de una función callback de observador de función."
223226#: ../Doc/c-api/function.rst:162
224227msgid ""
225228"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
226- "then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term: "
227- "`borrowed reference` to the new value that is about to be stored in *func* "
228- "for the attribute that is being modified."
229+ "then *new_value* will be ``NULL``. Otherwise, *new_value* will hold "
230+ "a :term: `borrowed reference` to the new value that is about to be stored in "
231+ "*func* for the attribute that is being modified."
229232msgstr ""
230233"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."
234+ "entonces *new_value* será ``NULL``. De lo contrario, *new_value* mantendrá "
235+ "una :term: `referencia prestada` al nuevo valor que está a punto de "
236+ "almacenarse en *func* para el atributo que se está modificando."
234237
235238#: ../Doc/c-api/function.rst:167
236239msgid ""
237240"The callback may inspect but must not modify *func*; doing so could have "
238241"unpredictable effects, including infinite recursion."
239242msgstr ""
240- "El callback puede inspeccionar pero no debe modificar *func*; hacerlo podría tener "
241- "efectos impredecibles, incluyendo recursión infinita."
243+ "El callback puede inspeccionar pero no debe modificar *func*; hacerlo podría "
244+ "tener efectos impredecibles, incluyendo recursión infinita."
242245
243246#: ../Doc/c-api/function.rst:170
244247msgid ""
@@ -252,12 +255,13 @@ msgid ""
252255"semantics of the Python code being executed."
253256msgstr ""
254257"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 "
258+ "después de que `func` haya sido completamente inicializada. De lo contrario, "
259+ "el callback se invoca antes de que tenga lugar la modificación a *func*, por "
260+ "lo que el estado previo de *func* puede ser inspeccionado. Se permite al "
261+ "tiempo de ejecución optimizar la creación de objetos función cuando sea "
262+ "posible. En tales casos no se emitirá ningún evento. Aunque esto crea la "
263+ "posibilidad de una diferencia observable del comportamiento del tiempo de "
264+ "ejecución dependiendo de las decisiones de optimización, no cambia la "
261265"semántica del código Python que se está ejecutando."
262266
263267#: ../Doc/c-api/function.rst:179
@@ -268,19 +272,20 @@ msgid ""
268272"later, any watcher callbacks active at that time will be called again."
269273msgstr ""
270274"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."
275+ "callback a la función a punto de ser destruida la resucitará, evitando que "
276+ "sea liberada en este momento. Cuando el objeto resucitado sea destruido más "
277+ "tarde, cualquier callback observador activo en ese momento será llamado de "
278+ "nuevo."
274279
275280#: ../Doc/c-api/function.rst:184
276281msgid ""
277282"If the callback sets an exception, it must return ``-1``; this exception "
278- "will be printed as an unraisable exception using :c:func: "
279- "`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
283+ "will be printed as an unraisable exception "
284+ "using :c:func: `PyErr_WriteUnraisable`. Otherwise it should return ``0``."
280285msgstr ""
281286"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``."
287+ "se imprimirá como una excepción no lanzable "
288+ "usando :c:func:`PyErr_WriteUnraisable`. De lo contrario debe retornar ``0``."
284289
285290#: ../Doc/c-api/function.rst:188
286291msgid ""
@@ -292,8 +297,9 @@ msgid ""
292297msgstr ""
293298"Puede haber ya una excepción pendiente establecida al entrar al callback. En "
294299"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."
300+ "establecida. Esto significa que el callback no puede llamar a ninguna otra "
301+ "API que pueda establecer una excepción a menos que guarde y borre el estado "
302+ "de la excepción primero, y lo restaure antes de retornar."
297303
298304#: ../Doc/c-api/function.rst:8
299305msgid "object"
0 commit comments