Skip to content

Commit e55daf1

Browse files
committed
Traducción library/asyncio-future.po (100% - fuzzy)
1 parent e8a6807 commit e55daf1

File tree

3 files changed

+70
-30
lines changed

3 files changed

+70
-30
lines changed

dict

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,3 +1459,4 @@ pad
14591459
pads
14601460
PyCon
14611461
guión
1462+
aguardable
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Task
2+
Futures

library/asyncio-future.po

Lines changed: 67 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
14-
"PO-Revision-Date: 2020-10-04 10:53+0200\n"
14+
"PO-Revision-Date: 2020-10-06 09:55+0200\n"
1515
"Language-Team: python-doc-es\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -23,7 +23,6 @@ msgstr ""
2323
"X-Generator: Poedit 2.4.1\n"
2424

2525
#: ../Doc/library/asyncio-future.rst:8
26-
#, fuzzy
2726
msgid "Futures"
2827
msgstr "Futures"
2928

@@ -50,7 +49,7 @@ msgstr "Funciones Future"
5049

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

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

6766
#: ../Doc/library/asyncio-future.rst:36
6867
msgid "Return:"
69-
msgstr "Devuelve:"
68+
msgstr "Retorna:"
7069

70+
# 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...()").
71+
# Me podría parecer más favorable decir algo así como "(esto se puede verificar con :func:isfuture)".
7172
#: ../Doc/library/asyncio-future.rst:38
7273
#, fuzzy
7374
msgid ""
7475
"*obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a "
7576
"Future-like object (:func:`isfuture` is used for the test.)"
7677
msgstr ""
77-
"el argument *obj* inalterado, si *obj* es una :class:`Future`, :class:"
78+
"el argumento *obj* inalterado, si *obj* es una :class:`Future`, :class:"
7879
"`Task`, o un objeto tipo Future (:func:`isfuture` se utiliza para testear)"
7980

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

9192
#: ../Doc/library/asyncio-future.rst:47
93+
#, fuzzy
9294
msgid ""
9395
"a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:"
9496
"func:`inspect.isawaitable` is used for the test.)"
9597
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.)"
98+
"un objeto :class:`Task` que aguardará a *obj*, si *obj* es aguardable (:func:"
99+
"`inspect.isawaitable` se utiliza para testear.)"
99100

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

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

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

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

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

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

181+
# 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.
180182
#: ../Doc/library/asyncio-future.rst:97
181183
#, fuzzy
182184
msgid ""
183185
"If the Future is *done* and has a result set by the :meth:`set_result` "
184186
"method, the result value is returned."
185187
msgstr ""
186188
"Si el Future es *done* y tiene un resultado establecido por el método :meth:"
187-
"`set_result`, el valor resultante es devuelto."
189+
"`set_result`, el valor resultante es retornado."
188190

189191
#: ../Doc/library/asyncio-future.rst:100
190192
#, fuzzy
@@ -193,24 +195,24 @@ msgid ""
193195
"`set_exception` method, this method raises the exception."
194196
msgstr ""
195197
"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."
198+
"`set_exception`, este método lanzará esta excepción."
197199

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

364391
#: ../Doc/library/asyncio-future.rst:244
365392
msgid ""
366393
":meth:`asyncio.Future.result` and :meth:`asyncio.Future.exception` do not "
367394
"accept the *timeout* argument."
368395
msgstr ""
396+
":meth:`asyncio.Future.result` y :meth:`asyncio.Future.exception` no aceptan "
397+
"el argumento *timeout*."
369398

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

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

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

0 commit comments

Comments
 (0)