@@ -12,7 +12,7 @@ msgstr ""
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2024-11-21 16:38-0300\n "
14
14
"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 "
16
16
"Language : es\n "
17
17
"Language-Team : python-doc-es\n "
18
18
"Plural-Forms : nplurals=2; plural=(n != 1);\n "
@@ -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 (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."
51
51
msgstr ""
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."
55
55
56
56
#: ../Doc/c-api/function.rst:34
57
57
msgid ""
@@ -64,31 +64,32 @@ msgstr ""
64
64
"la función."
65
65
66
66
#: ../Doc/c-api/function.rst:37
67
- #, fuzzy
68
67
msgid ""
69
- "The function's docstring and name are retrieved from the code object. :attr: "
70
- "`~function.__module__` is retrieved from *globals*. The argument defaults, "
71
- "annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
72
- "is set to the same value as the code object's :attr:`~codeobject. "
73
- "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."
74
73
msgstr ""
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 "
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
- #, fuzzy
82
81
msgid ""
83
- "As :c:func:`PyFunction_New`, but also allows setting the function object's :"
84
- "attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
85
- "object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
86
- "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."
87
87
msgstr ""
88
- "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
+ "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."
92
93
93
94
#: ../Doc/c-api/function.rst:57
94
95
msgid "Return the code object associated with the function object *op*."
@@ -99,24 +100,23 @@ msgid "Return the globals dictionary associated with the function object *op*."
99
100
msgstr "Retorna el diccionario global asociado con el objeto función *op*."
100
101
101
102
#: ../Doc/c-api/function.rst:67
102
- #, fuzzy
103
103
msgid ""
104
104
"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
105
105
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
106
106
"*NULL*."
107
107
msgstr ""
108
- "Retorna una referencia tomada (:term:`borrowed reference`) al atributo "
109
- "*__module__* del objeto función *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*."
110
111
111
112
#: ../Doc/c-api/function.rst:71
112
- #, fuzzy
113
113
msgid ""
114
114
"This is normally a :class:`string <str>` containing the module name, but can "
115
115
"be set to any other object by Python code."
116
116
msgstr ""
117
- "Éste es normalmente una cadena de caracteres que contiene el nombre del "
118
- "módulo, pero se puede establecer en cualquier otro objeto mediante código "
119
- "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."
120
120
121
121
#: ../Doc/c-api/function.rst:77
122
122
msgid ""
@@ -141,13 +141,15 @@ msgstr "Lanza :exc:`SystemError` y retorna ``-1`` en caso de error."
141
141
142
142
#: ../Doc/c-api/function.rst:91
143
143
msgid "Set the vectorcall field of a given function object *func*."
144
- msgstr ""
144
+ msgstr "Establece el campo vectorcall de un objeto función dado *func*. "
145
145
146
146
#: ../Doc/c-api/function.rst:93
147
147
msgid ""
148
148
"Warning: extensions using this API must preserve the behavior of the "
149
149
"unaltered (default) vectorcall function!"
150
150
msgstr ""
151
+ "Advertencia: ¡las extensiones que usan esta API deben preservar el "
152
+ "comportamiento de la función vectorcall inalterada (por defecto)!"
151
153
152
154
#: ../Doc/c-api/function.rst:100
153
155
msgid ""
@@ -188,14 +190,22 @@ msgid ""
188
190
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
189
191
"exception."
190
192
msgstr ""
193
+ "Registra *callback* como un observador de función para el intérprete actual. "
194
+ "Retorna un ID que puede pasarse a :c:func:`PyFunction_ClearWatcher`. En caso "
195
+ "de error (por ejemplo, no hay más IDs de observador disponibles), retorna "
196
+ "``-1`` y establece una excepción."
191
197
192
198
#: ../Doc/c-api/function.rst:138
193
199
msgid ""
194
- "Clear watcher identified by *watcher_id* previously returned from :c:func: "
195
- "`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
196
- "success, or ``-1`` and set an exception on error (e.g. if the given "
197
- "*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.)"
198
204
msgstr ""
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)."
199
209
200
210
#: ../Doc/c-api/function.rst:148
201
211
msgid ""
@@ -204,24 +214,34 @@ msgid ""
204
214
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
205
215
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
206
216
msgstr ""
217
+ "Enumeración de posibles eventos de observador de función: - "
218
+ "``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
219
+ "``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
220
+ "``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
207
221
208
222
#: ../Doc/c-api/function.rst:160
209
223
msgid "Type of a function watcher callback function."
210
- msgstr ""
224
+ msgstr "Tipo de una función callback de observador de función. "
211
225
212
226
#: ../Doc/c-api/function.rst:162
213
227
msgid ""
214
228
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
215
- "then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term: "
216
- "`borrowed reference` to the new value that is about to be stored in *func* "
217
- "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."
218
232
msgstr ""
233
+ "Si *event* es ``PyFunction_EVENT_CREATE`` o ``PyFunction_EVENT_DESTROY`` "
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."
219
237
220
238
#: ../Doc/c-api/function.rst:167
221
239
msgid ""
222
240
"The callback may inspect but must not modify *func*; doing so could have "
223
241
"unpredictable effects, including infinite recursion."
224
242
msgstr ""
243
+ "El callback puede inspeccionar pero no debe modificar *func*; hacerlo podría "
244
+ "tener efectos impredecibles, incluyendo recursión infinita."
225
245
226
246
#: ../Doc/c-api/function.rst:170
227
247
msgid ""
@@ -234,6 +254,15 @@ msgid ""
234
254
"behavior depending on optimization decisions, it does not change the "
235
255
"semantics of the Python code being executed."
236
256
msgstr ""
257
+ "Si *event* es ``PyFunction_EVENT_CREATE``, entonces el callback se invoca "
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 "
265
+ "semántica del código Python que se está ejecutando."
237
266
238
267
#: ../Doc/c-api/function.rst:179
239
268
msgid ""
@@ -242,13 +271,21 @@ msgid ""
242
271
"it from being freed at this time. When the resurrected object is destroyed "
243
272
"later, any watcher callbacks active at that time will be called again."
244
273
msgstr ""
274
+ "Si *event* es ``PyFunction_EVENT_DESTROY``, tomar una referencia en el "
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."
245
279
246
280
#: ../Doc/c-api/function.rst:184
247
281
msgid ""
248
282
"If the callback sets an exception, it must return ``-1``; this exception "
249
- "will be printed as an unraisable exception using :c:func: "
250
- "`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``."
251
285
msgstr ""
286
+ "Si el callback establece una excepción, debe retornar ``-1``; esta excepción "
287
+ "se imprimirá como una excepción no lanzable "
288
+ "usando :c:func:`PyErr_WriteUnraisable`. De lo contrario debe retornar ``0``."
252
289
253
290
#: ../Doc/c-api/function.rst:188
254
291
msgid ""
@@ -258,16 +295,20 @@ msgid ""
258
295
"exception unless it saves and clears the exception state first, and restores "
259
296
"it before returning."
260
297
msgstr ""
298
+ "Puede haber ya una excepción pendiente establecida al entrar al callback. En "
299
+ "este caso, el callback debe retornar ``0`` con la misma excepción aún "
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."
261
303
262
304
#: ../Doc/c-api/function.rst:8
263
305
msgid "object"
264
- msgstr ""
306
+ msgstr "objeto "
265
307
266
308
#: ../Doc/c-api/function.rst:8
267
- #, fuzzy
268
309
msgid "function"
269
- msgstr "Objetos función"
310
+ msgstr "función"
270
311
271
312
#: ../Doc/c-api/function.rst:20
272
313
msgid "MethodType (in module types)"
273
- msgstr ""
314
+ msgstr "MethodType (en module types) "
0 commit comments