Skip to content

Commit df9824d

Browse files
committed
Traducción library/asyncio-future.po (40%)
1 parent 3f9db29 commit df9824d

File tree

1 file changed

+94
-23
lines changed

1 file changed

+94
-23
lines changed

library/asyncio-future.po

Lines changed: 94 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,222 +6,293 @@
66
# Check https://github.com/python/python-docs-es/blob/3.8/TRANSLATORS to
77
# get the list of volunteers
88
#
9-
#, fuzzy
109
msgid ""
1110
msgstr ""
1211
"Project-Id-Version: Python 3.8\n"
1312
"Report-Msgid-Bugs-To: \n"
1413
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
15-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
16-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"PO-Revision-Date: 2020-10-03 17:44+0200\n"
1715
"Language-Team: python-doc-es\n"
1816
"MIME-Version: 1.0\n"
19-
"Content-Type: text/plain; charset=utf-8\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
2018
"Content-Transfer-Encoding: 8bit\n"
2119
"Generated-By: Babel 2.8.0\n"
20+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
21+
"Last-Translator: \n"
22+
"Language: es\n"
23+
"X-Generator: Poedit 2.4.1\n"
2224

2325
#: ../Doc/library/asyncio-future.rst:8
26+
#, fuzzy
2427
msgid "Futures"
25-
msgstr ""
28+
msgstr "Futures"
2629

2730
#: ../Doc/library/asyncio-future.rst:10
2831
msgid ""
2932
"**Source code:** :source:`Lib/asyncio/futures.py`, :source:`Lib/asyncio/"
3033
"base_futures.py`"
3134
msgstr ""
35+
"**Código fuente:** :source:`Lib/asyncio/futures.py`, :source:`Lib/asyncio/"
36+
"base_futures.py`"
3237

3338
#: ../Doc/library/asyncio-future.rst:15
3439
msgid ""
3540
"*Future* objects are used to bridge **low-level callback-based code** with "
3641
"high-level async/await code."
3742
msgstr ""
43+
"Los objetos *Future* se utilizan para conectar **código basado en callbacks "
44+
"de bajo nivel** (*low-level callback-based code*) con código *async/await* "
45+
"de alto nivel."
3846

3947
#: ../Doc/library/asyncio-future.rst:20
4048
msgid "Future Functions"
41-
msgstr ""
49+
msgstr "Funciones Future"
4250

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

4755
#: ../Doc/library/asyncio-future.rst:26
4856
msgid "an instance of :class:`asyncio.Future`,"
49-
msgstr ""
57+
msgstr "una instancia de :class:`asyncio.Future`,"
5058

5159
#: ../Doc/library/asyncio-future.rst:27
5260
msgid "an instance of :class:`asyncio.Task`,"
53-
msgstr ""
61+
msgstr "una instancia de :class:`asyncio.Task`,"
5462

5563
#: ../Doc/library/asyncio-future.rst:28
5664
msgid "a Future-like object with a ``_asyncio_future_blocking`` attribute."
57-
msgstr ""
65+
msgstr "un objeto tipo Future con un atributo ``_asyncio_future_blocking``."
5866

5967
#: ../Doc/library/asyncio-future.rst:36
6068
msgid "Return:"
61-
msgstr ""
69+
msgstr "Devuelve:"
6270

6371
#: ../Doc/library/asyncio-future.rst:38
72+
#, fuzzy
6473
msgid ""
6574
"*obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a "
6675
"Future-like object (:func:`isfuture` is used for the test.)"
6776
msgstr ""
77+
"el argument *obj* inalterado, si *obj* es una :class:`Future`, :class:"
78+
"`Task`, o un objeto tipo Future (:func:`isfuture` se utiliza para testear)"
6879

6980
#: ../Doc/library/asyncio-future.rst:42
81+
#, fuzzy
7082
msgid ""
7183
"a :class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:"
7284
"`iscoroutine` is used for the test); in this case the coroutine will be "
7385
"scheduled by ``ensure_future()``."
7486
msgstr ""
87+
"un objeto :class:`Task` envolviendo *obj*, si *obj* es una corrutina (:func:"
88+
"`iscoroutine` se utiliza para testear); en este caso, la corrutina será "
89+
"programada por ``ensure_future()``."
7590

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

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

86105
#: ../Doc/library/asyncio-future.rst:54
87106
msgid ""
88107
"See also the :func:`create_task` function which is the preferred way for "
89108
"creating new Tasks."
90109
msgstr ""
110+
"Ver también la función :func:`create_task`, que es la forma preferida de "
111+
"crear nuevas *Tasks*."
91112

92113
#: ../Doc/library/asyncio-future.rst:57
93114
msgid "The function accepts any :term:`awaitable` object."
94-
msgstr ""
115+
msgstr "La función acepta cualquier objeto :term:`awaitable`."
95116

96117
#: ../Doc/library/asyncio-future.rst:63
97118
msgid ""
98119
"Wrap a :class:`concurrent.futures.Future` object in a :class:`asyncio."
99120
"Future` object."
100121
msgstr ""
122+
"Envuelve un objeto :class:`concurrent.futures.Future` en un objeto :class:"
123+
"`asyncio.Future`."
101124

102125
#: ../Doc/library/asyncio-future.rst:68
103126
msgid "Future Object"
104-
msgstr ""
127+
msgstr "Objeto Future"
105128

106129
#: ../Doc/library/asyncio-future.rst:72
107130
msgid ""
108131
"A Future represents an eventual result of an asynchronous operation. Not "
109132
"thread-safe."
110133
msgstr ""
134+
"Un *Future* representa un resultado eventual de una operación asíncrona. No "
135+
"es seguro en hilos (*thread-safe*)."
111136

112137
#: ../Doc/library/asyncio-future.rst:75
113138
msgid ""
114139
"Future is an :term:`awaitable` object. Coroutines can await on Future "
115140
"objects until they either have a result or an exception set, or until they "
116141
"are cancelled."
117142
msgstr ""
143+
"Future es un objeto :term:`awaitable`. Las corrutinas pueden esperar "
144+
"(*await*) a objetos Future hasta que obtengan un resultado o excepción, o "
145+
"hasta que se cancelen."
118146

119147
#: ../Doc/library/asyncio-future.rst:79
120148
msgid ""
121149
"Typically Futures are used to enable low-level callback-based code (e.g. in "
122150
"protocols implemented using asyncio :ref:`transports <asyncio-transports-"
123151
"protocols>`) to interoperate with high-level async/await code."
124152
msgstr ""
153+
"Normalmente, los *Futures* se utilizan para permitir que código basado en "
154+
"callbacks de bajo nivel (*low-level callback-based code*) (por ejemplo, en "
155+
"protocolos implementados utilizando *asyncio* :ref:`transports <asyncio-"
156+
"transports-protocols>`) interactúe con código *async/await* de alto nivel."
125157

126158
#: ../Doc/library/asyncio-future.rst:84
159+
#, fuzzy
127160
msgid ""
128161
"The rule of thumb is to never expose Future objects in user-facing APIs, and "
129162
"the recommended way to create a Future object is to call :meth:`loop."
130163
"create_future`. This way alternative event loop implementations can inject "
131164
"their own optimized implementations of a Future object."
132165
msgstr ""
166+
"La regla del pulgar es no exponer nunca objetos Future en APIs expuestas al "
167+
"usuario, y la forma recomendada de crear un objeto Future es llamando a :"
168+
"meth:`loop.create_future`. De esta forma, implementaciones alternativas de "
169+
"bucles de eventos (*event loop*) pueden inyectar sus propias "
170+
"implementaciones optimizadas de un objeto Future."
133171

134172
#: ../Doc/library/asyncio-future.rst:90
135173
msgid "Added support for the :mod:`contextvars` module."
136-
msgstr ""
174+
msgstr "Añadido soporte para el módulo :mod:`contextvars`."
137175

138176
#: ../Doc/library/asyncio-future.rst:95
139177
msgid "Return the result of the Future."
140-
msgstr ""
178+
msgstr "Devuelve el resultado del Future."
141179

142180
#: ../Doc/library/asyncio-future.rst:97
181+
#, fuzzy
143182
msgid ""
144183
"If the Future is *done* and has a result set by the :meth:`set_result` "
145184
"method, the result value is returned."
146185
msgstr ""
186+
"Si el Future es *done* y tiene un resultado establecido por el método :meth:"
187+
"`set_result`, el valor resultante es devuelto."
147188

148189
#: ../Doc/library/asyncio-future.rst:100
190+
#, fuzzy
149191
msgid ""
150192
"If the Future is *done* and has an exception set by the :meth:"
151193
"`set_exception` method, this method raises the exception."
152194
msgstr ""
195+
"Si el Future es *done* y tiene una excepción establecida por el método :meth:"
196+
"`set_exception`, este método lanza esta excepción."
153197

154198
#: ../Doc/library/asyncio-future.rst:103 ../Doc/library/asyncio-future.rst:188
199+
#, fuzzy
155200
msgid ""
156201
"If the Future has been *cancelled*, this method raises a :exc:"
157202
"`CancelledError` exception."
158203
msgstr ""
204+
"Si un evento es *cancelled*, este método lanza una excepción :exc:"
205+
"`CancelledError`."
159206

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

166215
#: ../Doc/library/asyncio-future.rst:111
216+
#, fuzzy
167217
msgid "Mark the Future as *done* and set its result."
168-
msgstr ""
218+
msgstr "Marca el Future como *done* y establece su resultado."
169219

170220
#: ../Doc/library/asyncio-future.rst:113 ../Doc/library/asyncio-future.rst:120
221+
#, fuzzy
171222
msgid ""
172223
"Raises a :exc:`InvalidStateError` error if the Future is already *done*."
173-
msgstr ""
224+
msgstr "Lanza un error :exc:`InvalidStateError` si el Future ya está *done*."
174225

175226
#: ../Doc/library/asyncio-future.rst:118
227+
#, fuzzy
176228
msgid "Mark the Future as *done* and set an exception."
177-
msgstr ""
229+
msgstr "Marca el Future como *done* y establece una excepción."
178230

179231
#: ../Doc/library/asyncio-future.rst:125
232+
#, fuzzy
180233
msgid "Return ``True`` if the Future is *done*."
181-
msgstr ""
234+
msgstr "Devuelve ``True`` si el Future está *done*."
182235

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

189246
#: ../Doc/library/asyncio-future.rst:133
247+
#, fuzzy
190248
msgid "Return ``True`` if the Future was *cancelled*."
191-
msgstr ""
249+
msgstr "Devuelve ``True`` si el Future fue *cancelled*."
192250

193251
#: ../Doc/library/asyncio-future.rst:135
252+
#, fuzzy
194253
msgid ""
195254
"The method is usually used to check if a Future is not *cancelled* before "
196255
"setting a result or an exception for it::"
197256
msgstr ""
257+
"El método suele utilizarse para comprobar que un Future no es *cancelled* "
258+
"antes de establecer un resultado o excepción al mismo::"
198259

199260
#: ../Doc/library/asyncio-future.rst:143
261+
#, fuzzy
200262
msgid "Add a callback to be run when the Future is *done*."
201-
msgstr ""
263+
msgstr "Añade un *callback* a ser ejecutado cuando el Future es *done*."
202264

203265
#: ../Doc/library/asyncio-future.rst:145
204266
msgid "The *callback* is called with the Future object as its only argument."
205-
msgstr ""
267+
msgstr "El *callback* es llamado con el objeto Future como su único argumento."
206268

207269
#: ../Doc/library/asyncio-future.rst:148
208270
msgid ""
209271
"If the Future is already *done* when this method is called, the callback is "
210272
"scheduled with :meth:`loop.call_soon`."
211273
msgstr ""
274+
"Si el Future ya es *done* cuando se llama a este método, el *callback* es "
275+
"programado con :meth:`loop.call_soon`."
212276

213277
#: ../Doc/library/asyncio-future.rst:151
278+
#, fuzzy
214279
msgid ""
215280
"An optional keyword-only *context* argument allows specifying a custom :"
216281
"class:`contextvars.Context` for the *callback* to run in. The current "
217282
"context is used when no *context* is provided."
218283
msgstr ""
284+
"Un argumento de contexto (*context*), opcional y de tipo clave-valor "
285+
"(*keywork*), permite especificar un :class:`contextvars.Context` "
286+
"personalizado para ejecutarse en el *callback*. El contexto actual se "
287+
"utiliza cuando no se provee un contexto."
219288

220289
#: ../Doc/library/asyncio-future.rst:155
221290
msgid ""
222291
":func:`functools.partial` can be used to pass parameters to the callback, e."
223292
"g.::"
224293
msgstr ""
294+
":func:`functools.partial` se puede utilizar para dar parámetros al "
295+
"*callback*, por ejemplo::"
225296

226297
#: ../Doc/library/asyncio-future.rst:162
227298
msgid ""

0 commit comments

Comments
 (0)