Skip to content

Commit 51d0fe7

Browse files
authored
Translate c-api/function.po 🤖 (#3411)
Updated header information for c-api/function.po. File was largely translated already with only minor header updates needed. Updated Last-Translator field and Po-Revision-Date. Closes #3251
1 parent 53312f2 commit 51d0fe7

File tree

2 files changed

+94
-52
lines changed

2 files changed

+94
-52
lines changed

c-api/function.po

Lines changed: 93 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
@@ -36,22 +36,22 @@ msgstr "La estructura C utilizada para las funciones."
3636
#: ../Doc/c-api/function.rst:22
3737
msgid ""
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``."
4141
msgstr ""
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
4747
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."
5151
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."
5555

5656
#: ../Doc/c-api/function.rst:34
5757
msgid ""
@@ -64,31 +64,32 @@ msgstr ""
6464
"la función."
6565

6666
#: ../Doc/c-api/function.rst:37
67-
#, fuzzy
6867
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."
7473
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."
7979

8080
#: ../Doc/c-api/function.rst:46
81-
#, fuzzy
8281
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."
8787
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."
9293

9394
#: ../Doc/c-api/function.rst:57
9495
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*."
99100
msgstr "Retorna el diccionario global asociado con el objeto función *op*."
100101

101102
#: ../Doc/c-api/function.rst:67
102-
#, fuzzy
103103
msgid ""
104104
"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
105105
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
106106
"*NULL*."
107107
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*."
110111

111112
#: ../Doc/c-api/function.rst:71
112-
#, fuzzy
113113
msgid ""
114114
"This is normally a :class:`string <str>` containing the module name, but can "
115115
"be set to any other object by Python code."
116116
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."
120120

121121
#: ../Doc/c-api/function.rst:77
122122
msgid ""
@@ -141,13 +141,15 @@ msgstr "Lanza :exc:`SystemError` y retorna ``-1`` en caso de error."
141141

142142
#: ../Doc/c-api/function.rst:91
143143
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*."
145145

146146
#: ../Doc/c-api/function.rst:93
147147
msgid ""
148148
"Warning: extensions using this API must preserve the behavior of the "
149149
"unaltered (default) vectorcall function!"
150150
msgstr ""
151+
"Advertencia: ¡las extensiones que usan esta API deben preservar el "
152+
"comportamiento de la función vectorcall inalterada (por defecto)!"
151153

152154
#: ../Doc/c-api/function.rst:100
153155
msgid ""
@@ -188,14 +190,22 @@ msgid ""
188190
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
189191
"exception."
190192
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."
191197

192198
#: ../Doc/c-api/function.rst:138
193199
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.)"
198204
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)."
199209

200210
#: ../Doc/c-api/function.rst:148
201211
msgid ""
@@ -204,24 +214,34 @@ msgid ""
204214
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
205215
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
206216
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``"
207221

208222
#: ../Doc/c-api/function.rst:160
209223
msgid "Type of a function watcher callback function."
210-
msgstr ""
224+
msgstr "Tipo de una función callback de observador de función."
211225

212226
#: ../Doc/c-api/function.rst:162
213227
msgid ""
214228
"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."
218232
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."
219237

220238
#: ../Doc/c-api/function.rst:167
221239
msgid ""
222240
"The callback may inspect but must not modify *func*; doing so could have "
223241
"unpredictable effects, including infinite recursion."
224242
msgstr ""
243+
"El callback puede inspeccionar pero no debe modificar *func*; hacerlo podría "
244+
"tener efectos impredecibles, incluyendo recursión infinita."
225245

226246
#: ../Doc/c-api/function.rst:170
227247
msgid ""
@@ -234,6 +254,15 @@ msgid ""
234254
"behavior depending on optimization decisions, it does not change the "
235255
"semantics of the Python code being executed."
236256
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."
237266

238267
#: ../Doc/c-api/function.rst:179
239268
msgid ""
@@ -242,13 +271,21 @@ msgid ""
242271
"it from being freed at this time. When the resurrected object is destroyed "
243272
"later, any watcher callbacks active at that time will be called again."
244273
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."
245279

246280
#: ../Doc/c-api/function.rst:184
247281
msgid ""
248282
"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``."
251285
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``."
252289

253290
#: ../Doc/c-api/function.rst:188
254291
msgid ""
@@ -258,16 +295,20 @@ msgid ""
258295
"exception unless it saves and clears the exception state first, and restores "
259296
"it before returning."
260297
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."
261303

262304
#: ../Doc/c-api/function.rst:8
263305
msgid "object"
264-
msgstr ""
306+
msgstr "objeto"
265307

266308
#: ../Doc/c-api/function.rst:8
267-
#, fuzzy
268309
msgid "function"
269-
msgstr "Objetos función"
310+
msgstr "función"
270311

271312
#: ../Doc/c-api/function.rst:20
272313
msgid "MethodType (in module types)"
273-
msgstr ""
314+
msgstr "MethodType (en module types)"

dictionaries/c-api_function.txt

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

0 commit comments

Comments
 (0)