Skip to content

Traducido archivo library/asyncio-future.po #929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Traducción library/asyncio-future.po (100% - fuzzy)
  • Loading branch information
David-Lor committed Oct 6, 2020
commit bc95f08ceda1103e192febe60c4d25e7cd6c1798
1 change: 1 addition & 0 deletions dict
Original file line number Diff line number Diff line change
Expand Up @@ -1459,3 +1459,4 @@ pad
pads
PyCon
guión
aguardable
2 changes: 2 additions & 0 deletions dictionaries/library_asyncio-future.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Task
Futures
97 changes: 67 additions & 30 deletions library/asyncio-future.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
"PO-Revision-Date: 2020-10-04 10:53+0200\n"
"PO-Revision-Date: 2020-10-06 09:55+0200\n"
"Language-Team: python-doc-es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -23,7 +23,6 @@ msgstr ""
"X-Generator: Poedit 2.4.1\n"

#: ../Doc/library/asyncio-future.rst:8
#, fuzzy
msgid "Futures"
msgstr "Futures"

Expand All @@ -50,7 +49,7 @@ msgstr "Funciones Future"

#: ../Doc/library/asyncio-future.rst:24
msgid "Return ``True`` if *obj* is either of:"
msgstr "Devuelve ``True`` si *obj* es uno de los siguientes:"
msgstr "Retorna ``True`` si *obj* es uno de los siguientes:"

#: ../Doc/library/asyncio-future.rst:26
msgid "an instance of :class:`asyncio.Future`,"
Expand All @@ -66,15 +65,17 @@ msgstr "un objeto tipo Future con un atributo ``_asyncio_future_blocking``."

#: ../Doc/library/asyncio-future.rst:36
msgid "Return:"
msgstr "Devuelve:"
msgstr "Retorna:"

# Aquí traduje "is used for the test" literalmente. Sin embargo, me parece que puede ser confuso usar "test" en este contexto, porque me vienen a la cabeza tests propiamente dichos (tipo unittest), más que el hecho de comprobar que (en este ejemplo) un objeto es de tipo Future, llamando a "isfuture" (que entiendo que es lo que realmente hacen estas funciones "is...()").
# Me podría parecer más favorable decir algo así como "(esto se puede verificar con :func:isfuture)".
#: ../Doc/library/asyncio-future.rst:38
#, fuzzy
msgid ""
"*obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a "
"Future-like object (:func:`isfuture` is used for the test.)"
msgstr ""
"el argument *obj* inalterado, si *obj* es una :class:`Future`, :class:"
"el argumento *obj* inalterado, si *obj* es una :class:`Future`, :class:"
"`Task`, o un objeto tipo Future (:func:`isfuture` se utiliza para testear)"

#: ../Doc/library/asyncio-future.rst:42
Expand All @@ -89,16 +90,15 @@ msgstr ""
"programada por ``ensure_future()``."

#: ../Doc/library/asyncio-future.rst:47
#, fuzzy
msgid ""
"a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:"
"func:`inspect.isawaitable` is used for the test.)"
msgstr ""
"un objeto :class:`Task` que aguardará (*await*) a *obj*, si *obj* es "
"esperable (*awaitable*) (:func:`inspect.isawaitable` se utiliza para "
"testear.)"
"un objeto :class:`Task` que aguardará a *obj*, si *obj* es aguardable (:func:"
"`inspect.isawaitable` se utiliza para testear.)"

#: ../Doc/library/asyncio-future.rst:50
#, fuzzy
msgid "If *obj* is neither of the above a :exc:`TypeError` is raised."
msgstr "Si *obj* no es ninguno de los superiores, se lanzará :exc:`TypeError`."

Expand All @@ -107,8 +107,8 @@ msgid ""
"See also the :func:`create_task` function which is the preferred way for "
"creating new Tasks."
msgstr ""
"Ver también la función :func:`create_task`, que es la forma preferida de "
"crear nuevas *Tasks*."
"Ver también la función :func:`create_task`, que es la forma preferida de crear nuevas "
"*Tasks*."

#: ../Doc/library/asyncio-future.rst:57
msgid "The function accepts any :term:`awaitable` object."
Expand All @@ -131,8 +131,8 @@ msgid ""
"A Future represents an eventual result of an asynchronous operation. Not "
"thread-safe."
msgstr ""
"Un *Future* representa un resultado eventual de una operación asíncrona. No "
"es seguro en hilos (*thread-safe*)."
"Un Future representa un resultado eventual de una operación asíncrona. No es "
"seguro en hilos (*thread-safe*)."

#: ../Doc/library/asyncio-future.rst:75
msgid ""
Expand All @@ -150,11 +150,12 @@ msgid ""
"protocols implemented using asyncio :ref:`transports <asyncio-transports-"
"protocols>`) to interoperate with high-level async/await code."
msgstr ""
"Normalmente, los *Futures* se utilizan para permitir que código basado en "
"Normalmente, los Futures se utilizan para permitir que código basado en "
"retrollamadas de bajo nivel (*low-level callback-based code*) (por ejemplo, "
"en protocolos implementados utilizando *asyncio* :ref:`transports <asyncio-"
"transports-protocols>`) interactúe con código *async/await* de alto nivel."

# Usar expresiones como "regla de pulgar" o "regla de oro" me suena personalmente extraño, pero la traducción literal sería esta.
#: ../Doc/library/asyncio-future.rst:84
#, fuzzy
msgid ""
Expand All @@ -175,16 +176,17 @@ msgstr "Añadido soporte para el módulo :mod:`contextvars`."

#: ../Doc/library/asyncio-future.rst:95
msgid "Return the result of the Future."
msgstr "Devuelve el resultado del Future."
msgstr "Retorna el resultado del Future."

# Aquí (y en otras líneas posteriores marcadas como "fuzzy") he mantenido "done", "cancelled" y otras expresiones sin traducir porque en el texto original son expresiones marcadas en cursiva, por lo que me ha parecido que son nombres técnicos, pero no estoy seguro de ello.
#: ../Doc/library/asyncio-future.rst:97
#, fuzzy
msgid ""
"If the Future is *done* and has a result set by the :meth:`set_result` "
"method, the result value is returned."
msgstr ""
"Si el Future es *done* y tiene un resultado establecido por el método :meth:"
"`set_result`, el valor resultante es devuelto."
"`set_result`, el valor resultante es retornado."

#: ../Doc/library/asyncio-future.rst:100
#, fuzzy
Expand All @@ -193,24 +195,24 @@ msgid ""
"`set_exception` method, this method raises the exception."
msgstr ""
"Si el Future es *done* y tiene una excepción establecida por el método :meth:"
"`set_exception`, este método lanza esta excepción."
"`set_exception`, este método lanzará esta excepción."

#: ../Doc/library/asyncio-future.rst:103 ../Doc/library/asyncio-future.rst:188
#, fuzzy
msgid ""
"If the Future has been *cancelled*, this method raises a :exc:"
"`CancelledError` exception."
msgstr ""
"Si un evento es *cancelled*, este método lanza una excepción :exc:"
"Si un evento es *cancelled*, este método lanzará una excepción :exc:"
"`CancelledError`."

#: ../Doc/library/asyncio-future.rst:106
msgid ""
"If the Future's result isn't yet available, this method raises a :exc:"
"`InvalidStateError` exception."
msgstr ""
"Si el resultado del Future todavía no está disponible, este método lanza una "
"excepción :exc:`InvalidStateError`."
"Si el resultado del Future todavía no está disponible, este método lanzará "
"una excepción :exc:`InvalidStateError`."

#: ../Doc/library/asyncio-future.rst:111
#, fuzzy
Expand All @@ -231,22 +233,22 @@ msgstr "Marca el Future como *done* y establece una excepción."
#: ../Doc/library/asyncio-future.rst:125
#, fuzzy
msgid "Return ``True`` if the Future is *done*."
msgstr "Devuelve ``True`` si el Future está *done*."
msgstr "Retorna ``True`` si el Future está *done*."

#: ../Doc/library/asyncio-future.rst:127
#, fuzzy
msgid ""
"A Future is *done* if it was *cancelled* or if it has a result or an "
"exception set with :meth:`set_result` or :meth:`set_exception` calls."
msgstr ""
"Un Future está *done* si estaba *cancelled* o si tuvo un resultado o "
"Un Future está *done* si estaba *cancelled* o si tiene un resultado o "
"excepción establecidos mediante llamadas a :meth:`set_result` o :meth:"
"`set_exception`."

#: ../Doc/library/asyncio-future.rst:133
#, fuzzy
msgid "Return ``True`` if the Future was *cancelled*."
msgstr "Devuelve ``True`` si el Future fue *cancelled*."
msgstr "Retorna ``True`` si el Future fue *cancelled*."

#: ../Doc/library/asyncio-future.rst:135
#, fuzzy
Expand All @@ -258,6 +260,7 @@ msgstr ""
"antes de establecer un resultado o excepción al mismo::"

#: ../Doc/library/asyncio-future.rst:143
#, fuzzy
msgid "Add a callback to be run when the Future is *done*."
msgstr ""
"Añade una retrollamada (*callback*) a ser ejecutada cuando el Future es "
Expand All @@ -283,10 +286,10 @@ msgid ""
"class:`contextvars.Context` for the *callback* to run in. The current "
"context is used when no *context* is provided."
msgstr ""
"Un argumento de contexto (*context*), opcional y de tipo clave-valor, "
"permite especificar un :class:`contextvars.Context` personalizado para "
"ejecutarse en la retrollamada (*callback*). El contexto actual se utiliza "
"cuando no se provee un contexto (*context*)."
"Un argumento opcional de contexto, por palabra clave, permite especificar "
"un :class:`contextvars.Context` personalizado para ser ejecutado en la "
"retrollamada (*callback*). El contexto actual se utiliza cuando no se provee "
"un contexto (*context*)."

#: ../Doc/library/asyncio-future.rst:155
msgid ""
Expand All @@ -301,86 +304,120 @@ msgid ""
"The *context* keyword-only parameter was added. See :pep:`567` for more "
"details."
msgstr ""
"El parámetro de contexto (*context*) por palabra clave fue añadido. Ver :pep:"
"`567` para más detalles."

#: ../Doc/library/asyncio-future.rst:168
msgid "Remove *callback* from the callbacks list."
msgstr ""
msgstr "Elimina la retrollamada (*callback*) de la lista de retrollamadas."

#: ../Doc/library/asyncio-future.rst:170
msgid ""
"Returns the number of callbacks removed, which is typically 1, unless a "
"callback was added more than once."
msgstr ""
"Retorna el número de retrollamadas (*callbacks*) eliminadas, que "
"normalmente es 1, excepto si una retrollamada fue añadida más de una vez."

#: ../Doc/library/asyncio-future.rst:175
msgid "Cancel the Future and schedule callbacks."
msgstr ""
msgstr "Cancela el Future y programa retrollamadas (*callbacks*)."

#: ../Doc/library/asyncio-future.rst:177
#, fuzzy
msgid ""
"If the Future is already *done* or *cancelled*, return ``False``. Otherwise, "
"change the Future's state to *cancelled*, schedule the callbacks, and return "
"``True``."
msgstr ""
"Si el Future ya está *done* o *cancelled*, retorna ``False``. De lo "
"contrario, cambia el estado del Future a *cancelled*, programa las "
"retrollamadas, y retorna ``True``."

#: ../Doc/library/asyncio-future.rst:183
msgid "Return the exception that was set on this Future."
msgstr ""
msgstr "Retorna la excepción definida en este Future."

#: ../Doc/library/asyncio-future.rst:185
#, fuzzy
msgid ""
"The exception (or ``None`` if no exception was set) is returned only if the "
"Future is *done*."
msgstr ""
"La excepción (o ``None`` si no se había establecido ninguna excepción) es "
"retornada sólo si Future es *done*."

#: ../Doc/library/asyncio-future.rst:191
#, fuzzy
msgid ""
"If the Future isn't *done* yet, this method raises an :exc:"
"`InvalidStateError` exception."
msgstr ""
"Si el Future todavía no es *done*, este método lanza una excepción :exc:"
"`InvalidStateError`."

#: ../Doc/library/asyncio-future.rst:196
msgid "Return the event loop the Future object is bound to."
msgstr ""
"Retorna el bucle de eventos (*event loop*) al cual el objeto Future está "
"asociado."

#: ../Doc/library/asyncio-future.rst:203
msgid ""
"This example creates a Future object, creates and schedules an asynchronous "
"Task to set result for the Future, and waits until the Future has a result::"
msgstr ""
"Este ejemplo crea un objeto Future, crea y programa una Task asíncrona para "
"establecer el resultado para el Future, y espera hasta que el Future tenga "
"un resultado::"

#: ../Doc/library/asyncio-future.rst:238
msgid ""
"The Future object was designed to mimic :class:`concurrent.futures.Future`. "
"Key differences include:"
msgstr ""
"El objeto Future fue diseñado para imitar a :class:`concurrent.futures."
"Future`. Entre las principales diferencias están:"

#: ../Doc/library/asyncio-future.rst:241
#, fuzzy
msgid ""
"unlike asyncio Futures, :class:`concurrent.futures.Future` instances cannot "
"be awaited."
msgstr ""
"al contrario que Futures de *asyncio*, las instancias de :class:`concurrent."
"futures.Future` no son esperables (*await*)."

#: ../Doc/library/asyncio-future.rst:244
msgid ""
":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` do not "
"accept the *timeout* argument."
msgstr ""
":meth:`asyncio.Future.result` y :meth:`asyncio.Future.exception` no aceptan "
"el argumento *timeout*."

#: ../Doc/library/asyncio-future.rst:247
#, fuzzy
msgid ""
":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` raise an :"
"exc:`InvalidStateError` exception when the Future is not *done*."
msgstr ""
":meth:`asyncio.Future.result` y :meth:`asyncio.Future.exception` lanzan una "
"excepción :exc:`InvalidStateError` cuando el Future no es *done*."

#: ../Doc/library/asyncio-future.rst:251
msgid ""
"Callbacks registered with :meth:`asyncio.Future.add_done_callback` are not "
"called immediately. They are scheduled with :meth:`loop.call_soon` instead."
msgstr ""
"Las retrollamadas (*callbacks*) registradas con :meth:`asyncio.Future."
"add_done_callback` no son llamadas inmediatamente, sino que son programadas "
"con :meth:`loop.call_soon`."

#: ../Doc/library/asyncio-future.rst:255
msgid ""
"asyncio Future is not compatible with the :func:`concurrent.futures.wait` "
"and :func:`concurrent.futures.as_completed` functions."
msgstr ""
"*asyncio* Future no es compatible con las funciones :func:`concurrent."
"futures.wait` ni :func:`concurrent.futures.as_completed`."