Skip to content

Commit fac432d

Browse files
committed
Completar la traducción de c-api/contextvars.po
Traduce las 7 entradas que quedaban pendientes, todas de la API de vigilantes de objetos de contexto (PyContext_AddWatcher/PyContext_ClearWatcher, PyContextEvent y la retrollamada de vigilancia). El archivo queda al 100 %. Refs #3832
1 parent 31d0120 commit fac432d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

c-api/contextvars.po

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ msgid ""
172172
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
173173
"exception."
174174
msgstr ""
175+
"Registra *callback* como un vigilante (*watcher*) de objetos de contexto "
176+
"para el intérprete actual. Retorna un ID que puede pasarse a "
177+
":c:func:`PyContext_ClearWatcher`. En caso de error (por ejemplo, si no hay "
178+
"más ID de vigilante disponibles), retorna ``-1`` y establece una excepción."
175179

176180
#: ../Doc/c-api/contextvars.rst:115
177181
msgid ""
@@ -180,31 +184,48 @@ msgid ""
180184
"or ``-1`` and set an exception on error (e.g. if the given *watcher_id* was "
181185
"never registered.)"
182186
msgstr ""
187+
"Elimina el vigilante identificado por *watcher_id* devuelto previamente por "
188+
":c:func:`PyContext_AddWatcher` para el intérprete actual. Retorna ``0`` si "
189+
"tiene éxito, o ``-1`` y establece una excepción en caso de error (por "
190+
"ejemplo, si el *watcher_id* indicado nunca se registró)."
183191

184192
#: ../Doc/c-api/contextvars.rst:124
185193
msgid "Enumeration of possible context object watcher events:"
186194
msgstr ""
187195

196+
"Enumeración de los posibles eventos de vigilante de objetos de contexto:"
197+
188198
#: ../Doc/c-api/contextvars.rst:126
189199
msgid ""
190200
"``Py_CONTEXT_SWITCHED``: The :term:`current context` has switched to a "
191201
"different context. The object passed to the watch callback is the now-"
192202
"current :class:`contextvars.Context` object, or None if no context is "
193203
"current."
194204
msgstr ""
205+
"``Py_CONTEXT_SWITCHED``: el :term:`contexto actual <current context>` ha "
206+
"cambiado a un contexto diferente. El objeto que se pasa a la retrollamada "
207+
"del vigilante es el objeto :class:`contextvars.Context` actual en ese "
208+
"momento, o None si no hay ningún contexto actual."
195209

196210
#: ../Doc/c-api/contextvars.rst:135
197211
msgid ""
198212
"Context object watcher callback function. The object passed to the callback "
199213
"is event-specific; see :c:type:`PyContextEvent` for details."
200214
msgstr ""
215+
"Función de retrollamada (*callback*) del vigilante de objetos de contexto. "
216+
"El objeto que se pasa a la retrollamada depende del evento; consulta "
217+
":c:type:`PyContextEvent` para obtener más detalles."
201218

202219
#: ../Doc/c-api/contextvars.rst:138
203220
msgid ""
204221
"If the callback returns with an exception set, it must return ``-1``; this "
205222
"exception will be printed as an unraisable exception using :c:func:"
206223
"`PyErr_FormatUnraisable`. Otherwise it should return ``0``."
207224
msgstr ""
225+
"Si la retrollamada retorna con una excepción establecida, debe retornar "
226+
"``-1``; esta excepción se imprimirá como una excepción no lanzable "
227+
"(*unraisable*) usando :c:func:`PyErr_FormatUnraisable`. En caso contrario, "
228+
"debería retornar ``0``."
208229

209230
#: ../Doc/c-api/contextvars.rst:142
210231
msgid ""
@@ -214,6 +235,12 @@ msgid ""
214235
"exception unless it saves and clears the exception state first, and restores "
215236
"it before returning."
216237
msgstr ""
238+
"Puede que ya haya una excepción pendiente establecida al entrar en la "
239+
"retrollamada. En este caso, la retrollamada debe retornar ``0`` con la misma "
240+
"excepción aún establecida. Esto significa que la retrollamada no puede "
241+
"llamar a ninguna otra API que pueda establecer una excepción, a menos que "
242+
"primero guarde y borre el estado de la excepción, y lo restaure antes de "
243+
"retornar."
217244

218245
#: ../Doc/c-api/contextvars.rst:151
219246
msgid "Context variable functions:"

0 commit comments

Comments
 (0)