@@ -36,22 +36,22 @@ msgstr "La estructura C utilizada para las funciones."
36
36
#: ../Doc/c-api/function.rst:22
37
37
msgid ""
38
38
"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``."
41
41
msgstr ""
42
42
"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``."
45
45
46
46
#: ../Doc/c-api/function.rst:28
47
47
msgid ""
48
- "Return true if *o* is a function object (hastype :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."
51
51
msgstr ""
52
- "Retorna verdadero si *o* es un objeto función (tienetipo :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."
55
55
56
56
#: ../Doc/c-api/function.rst:34
57
57
msgid ""
@@ -65,29 +65,31 @@ msgstr ""
65
65
66
66
#: ../Doc/c-api/function.rst:37
67
67
msgid ""
68
- "The function's docstring and name are retrieved from the codeobject. :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 thecode 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."
73
73
msgstr ""
74
- "El docstring y el nombre de la función se obtienen del objetocó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."
79
79
80
80
#: ../Doc/c-api/function.rst:46
81
81
msgid ""
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."
86
87
msgstr ""
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."
91
93
92
94
#: ../Doc/c-api/function.rst:57
93
95
msgid "Return the code object associated with the function object *op*."
@@ -103,17 +105,18 @@ msgid ""
103
105
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
104
106
"*NULL*."
105
107
msgstr ""
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*."
108
111
109
112
#: ../Doc/c-api/function.rst:71
110
113
msgid ""
111
114
"This is normally a :class:`string <str>` containing the module name, but can "
112
115
"be set to any other object by Python code."
113
116
msgstr ""
114
- "Esto es normalmente una :class:`cadena de caracteres <str>` que contiene elnombre 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."
117
120
118
121
#: ../Doc/c-api/function.rst:77
119
122
msgid ""
@@ -145,8 +148,8 @@ msgid ""
145
148
"Warning: extensions using this API must preserve the behavior of the "
146
149
"unaltered (default) vectorcall function!"
147
150
msgstr ""
148
- "Advertencia: ¡las extensiones que usan esta API deben preservar elcomportamiento "
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)!"
150
153
151
154
#: ../Doc/c-api/function.rst:100
152
155
msgid ""
@@ -189,20 +192,20 @@ msgid ""
189
192
msgstr ""
190
193
"Registra *callback* como un observador de función para el intérprete actual. "
191
194
"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."
194
197
195
198
#: ../Doc/c-api/function.rst:138
196
199
msgid ""
197
- "Clear watcher identified by *watcher_id* previously returnedfrom :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.)"
201
204
msgstr ""
202
- "Limpia el observador identificado por *watcher_id* previamente retornadode :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)."
206
209
207
210
#: ../Doc/c-api/function.rst:148
208
211
msgid ""
@@ -223,22 +226,22 @@ msgstr "Tipo de una función callback de observador de función."
223
226
#: ../Doc/c-api/function.rst:162
224
227
msgid ""
225
228
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
226
- "then *new_value* will be ``NULL``. Otherwise, *new_value* will holda :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."
229
232
msgstr ""
230
233
"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."
234
237
235
238
#: ../Doc/c-api/function.rst:167
236
239
msgid ""
237
240
"The callback may inspect but must not modify *func*; doing so could have "
238
241
"unpredictable effects, including infinite recursion."
239
242
msgstr ""
240
- "El callback puede inspeccionar pero no debe modificar *func*; hacerlo podríatener "
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."
242
245
243
246
#: ../Doc/c-api/function.rst:170
244
247
msgid ""
@@ -252,12 +255,13 @@ msgid ""
252
255
"semantics of the Python code being executed."
253
256
msgstr ""
254
257
"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 "
261
265
"semántica del código Python que se está ejecutando."
262
266
263
267
#: ../Doc/c-api/function.rst:179
@@ -268,19 +272,20 @@ msgid ""
268
272
"later, any watcher callbacks active at that time will be called again."
269
273
msgstr ""
270
274
"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."
274
279
275
280
#: ../Doc/c-api/function.rst:184
276
281
msgid ""
277
282
"If the callback sets an exception, it must return ``-1``; this exception "
278
- "will be printed as an unraisable exceptionusing :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``."
280
285
msgstr ""
281
286
"Si el callback establece una excepción, debe retornar ``-1``; esta excepción "
282
- "se imprimirá como una excepción noelevable usando :c:func:`PyErr_WriteUnraisable`. "
283
- "De lo contrario debe retornar ``0``."
287
+ "se imprimirá como una excepción nolanzable "
288
+ "usando :c:func:`PyErr_WriteUnraisable`. De lo contrario debe retornar ``0``."
284
289
285
290
#: ../Doc/c-api/function.rst:188
286
291
msgid ""
@@ -292,8 +297,9 @@ msgid ""
292
297
msgstr ""
293
298
"Puede haber ya una excepción pendiente establecida al entrar al callback. En "
294
299
"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."
297
303
298
304
#: ../Doc/c-api/function.rst:8
299
305
msgid "object"