|
6 | 6 | # Check https://github.com/python/python-docs-es/blob/3.8/TRANSLATORS to
|
7 | 7 | # get the list of volunteers
|
8 | 8 | #
|
9 |
| -#, fuzzy |
10 | 9 | msgid ""
|
11 | 10 | msgstr ""
|
12 | 11 | "Project-Id-Version: Python 3.8\n"
|
13 | 12 | "Report-Msgid-Bugs-To: \n"
|
14 | 13 | "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-04 10:53+0200\n" |
17 | 15 | "Language-Team: python-doc-es\n"
|
18 | 16 | "MIME-Version: 1.0\n"
|
19 |
| -"Content-Type: text/plain; charset=utf-8\n" |
| 17 | +"Content-Type: text/plain; charset=UTF-8\n" |
20 | 18 | "Content-Transfer-Encoding: 8bit\n"
|
21 | 19 | "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" |
22 | 24 |
|
23 | 25 | #: ../Doc/library/asyncio-future.rst:8
|
| 26 | +#, fuzzy |
24 | 27 | msgid "Futures"
|
25 |
| -msgstr "" |
| 28 | +msgstr "Futures" |
26 | 29 |
|
27 | 30 | #: ../Doc/library/asyncio-future.rst:10
|
28 | 31 | msgid ""
|
29 | 32 | "**Source code:** :source:`Lib/asyncio/futures.py`, :source:`Lib/asyncio/"
|
30 | 33 | "base_futures.py`"
|
31 | 34 | msgstr ""
|
| 35 | +"**Código fuente:** :source:`Lib/asyncio/futures.py`, :source:`Lib/asyncio/" |
| 36 | +"base_futures.py`" |
32 | 37 |
|
33 | 38 | #: ../Doc/library/asyncio-future.rst:15
|
34 | 39 | msgid ""
|
35 | 40 | "*Future* objects are used to bridge **low-level callback-based code** with "
|
36 | 41 | "high-level async/await code."
|
37 | 42 | msgstr ""
|
| 43 | +"Los objetos *Future* se utilizan para conectar **código basado en " |
| 44 | +"retrollamadas de bajo nivel** (*low-level callback-based code*) con código " |
| 45 | +"*async/await* de alto nivel." |
38 | 46 |
|
39 | 47 | #: ../Doc/library/asyncio-future.rst:20
|
40 | 48 | msgid "Future Functions"
|
41 |
| -msgstr "" |
| 49 | +msgstr "Funciones Future" |
42 | 50 |
|
43 | 51 | #: ../Doc/library/asyncio-future.rst:24
|
44 | 52 | msgid "Return ``True`` if *obj* is either of:"
|
45 |
| -msgstr "" |
| 53 | +msgstr "Devuelve ``True`` si *obj* es uno de los siguientes:" |
46 | 54 |
|
47 | 55 | #: ../Doc/library/asyncio-future.rst:26
|
48 | 56 | msgid "an instance of :class:`asyncio.Future`,"
|
49 |
| -msgstr "" |
| 57 | +msgstr "una instancia de :class:`asyncio.Future`," |
50 | 58 |
|
51 | 59 | #: ../Doc/library/asyncio-future.rst:27
|
52 | 60 | msgid "an instance of :class:`asyncio.Task`,"
|
53 |
| -msgstr "" |
| 61 | +msgstr "una instancia de :class:`asyncio.Task`," |
54 | 62 |
|
55 | 63 | #: ../Doc/library/asyncio-future.rst:28
|
56 | 64 | 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``." |
58 | 66 |
|
59 | 67 | #: ../Doc/library/asyncio-future.rst:36
|
60 | 68 | msgid "Return:"
|
61 |
| -msgstr "" |
| 69 | +msgstr "Devuelve:" |
62 | 70 |
|
63 | 71 | #: ../Doc/library/asyncio-future.rst:38
|
| 72 | +#, fuzzy |
64 | 73 | msgid ""
|
65 | 74 | "*obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a "
|
66 | 75 | "Future-like object (:func:`isfuture` is used for the test.)"
|
67 | 76 | 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)" |
68 | 79 |
|
69 | 80 | #: ../Doc/library/asyncio-future.rst:42
|
| 81 | +#, fuzzy |
70 | 82 | msgid ""
|
71 | 83 | "a :class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:"
|
72 | 84 | "`iscoroutine` is used for the test); in this case the coroutine will be "
|
73 | 85 | "scheduled by ``ensure_future()``."
|
74 | 86 | 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()``." |
75 | 90 |
|
76 | 91 | #: ../Doc/library/asyncio-future.rst:47
|
77 | 92 | msgid ""
|
78 | 93 | "a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:"
|
79 | 94 | "func:`inspect.isawaitable` is used for the test.)"
|
80 | 95 | 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.)" |
81 | 99 |
|
82 | 100 | #: ../Doc/library/asyncio-future.rst:50
|
| 101 | +#, fuzzy |
83 | 102 | 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`." |
85 | 104 |
|
86 | 105 | #: ../Doc/library/asyncio-future.rst:54
|
87 | 106 | msgid ""
|
88 | 107 | "See also the :func:`create_task` function which is the preferred way for "
|
89 | 108 | "creating new Tasks."
|
90 | 109 | msgstr ""
|
| 110 | +"Ver también la función :func:`create_task`, que es la forma preferida de " |
| 111 | +"crear nuevas *Tasks*." |
91 | 112 |
|
92 | 113 | #: ../Doc/library/asyncio-future.rst:57
|
93 | 114 | msgid "The function accepts any :term:`awaitable` object."
|
94 |
| -msgstr "" |
| 115 | +msgstr "La función acepta cualquier objeto :term:`awaitable`." |
95 | 116 |
|
96 | 117 | #: ../Doc/library/asyncio-future.rst:63
|
97 | 118 | msgid ""
|
98 | 119 | "Wrap a :class:`concurrent.futures.Future` object in a :class:`asyncio."
|
99 | 120 | "Future` object."
|
100 | 121 | msgstr ""
|
| 122 | +"Envuelve un objeto :class:`concurrent.futures.Future` en un objeto :class:" |
| 123 | +"`asyncio.Future`." |
101 | 124 |
|
102 | 125 | #: ../Doc/library/asyncio-future.rst:68
|
103 | 126 | msgid "Future Object"
|
104 |
| -msgstr "" |
| 127 | +msgstr "Objeto Future" |
105 | 128 |
|
106 | 129 | #: ../Doc/library/asyncio-future.rst:72
|
107 | 130 | msgid ""
|
108 | 131 | "A Future represents an eventual result of an asynchronous operation. Not "
|
109 | 132 | "thread-safe."
|
110 | 133 | msgstr ""
|
| 134 | +"Un *Future* representa un resultado eventual de una operación asíncrona. No " |
| 135 | +"es seguro en hilos (*thread-safe*)." |
111 | 136 |
|
112 | 137 | #: ../Doc/library/asyncio-future.rst:75
|
113 | 138 | msgid ""
|
114 | 139 | "Future is an :term:`awaitable` object. Coroutines can await on Future "
|
115 | 140 | "objects until they either have a result or an exception set, or until they "
|
116 | 141 | "are cancelled."
|
117 | 142 | 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." |
118 | 146 |
|
119 | 147 | #: ../Doc/library/asyncio-future.rst:79
|
120 | 148 | msgid ""
|
121 | 149 | "Typically Futures are used to enable low-level callback-based code (e.g. in "
|
122 | 150 | "protocols implemented using asyncio :ref:`transports <asyncio-transports-"
|
123 | 151 | "protocols>`) to interoperate with high-level async/await code."
|
124 | 152 | msgstr ""
|
| 153 | +"Normalmente, los *Futures* se utilizan para permitir que código basado en " |
| 154 | +"retrollamadas de bajo nivel (*low-level callback-based code*) (por ejemplo, " |
| 155 | +"en protocolos implementados utilizando *asyncio* :ref:`transports <asyncio-" |
| 156 | +"transports-protocols>`) interactúe con código *async/await* de alto nivel." |
125 | 157 |
|
126 | 158 | #: ../Doc/library/asyncio-future.rst:84
|
| 159 | +#, fuzzy |
127 | 160 | msgid ""
|
128 | 161 | "The rule of thumb is to never expose Future objects in user-facing APIs, and "
|
129 | 162 | "the recommended way to create a Future object is to call :meth:`loop."
|
130 | 163 | "create_future`. This way alternative event loop implementations can inject "
|
131 | 164 | "their own optimized implementations of a Future object."
|
132 | 165 | 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." |
133 | 171 |
|
134 | 172 | #: ../Doc/library/asyncio-future.rst:90
|
135 | 173 | msgid "Added support for the :mod:`contextvars` module."
|
136 |
| -msgstr "" |
| 174 | +msgstr "Añadido soporte para el módulo :mod:`contextvars`." |
137 | 175 |
|
138 | 176 | #: ../Doc/library/asyncio-future.rst:95
|
139 | 177 | msgid "Return the result of the Future."
|
140 |
| -msgstr "" |
| 178 | +msgstr "Devuelve el resultado del Future." |
141 | 179 |
|
142 | 180 | #: ../Doc/library/asyncio-future.rst:97
|
| 181 | +#, fuzzy |
143 | 182 | msgid ""
|
144 | 183 | "If the Future is *done* and has a result set by the :meth:`set_result` "
|
145 | 184 | "method, the result value is returned."
|
146 | 185 | 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." |
147 | 188 |
|
148 | 189 | #: ../Doc/library/asyncio-future.rst:100
|
| 190 | +#, fuzzy |
149 | 191 | msgid ""
|
150 | 192 | "If the Future is *done* and has an exception set by the :meth:"
|
151 | 193 | "`set_exception` method, this method raises the exception."
|
152 | 194 | 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." |
153 | 197 |
|
154 | 198 | #: ../Doc/library/asyncio-future.rst:103 ../Doc/library/asyncio-future.rst:188
|
| 199 | +#, fuzzy |
155 | 200 | msgid ""
|
156 | 201 | "If the Future has been *cancelled*, this method raises a :exc:"
|
157 | 202 | "`CancelledError` exception."
|
158 | 203 | msgstr ""
|
| 204 | +"Si un evento es *cancelled*, este método lanza una excepción :exc:" |
| 205 | +"`CancelledError`." |
159 | 206 |
|
160 | 207 | #: ../Doc/library/asyncio-future.rst:106
|
161 | 208 | msgid ""
|
162 | 209 | "If the Future's result isn't yet available, this method raises a :exc:"
|
163 | 210 | "`InvalidStateError` exception."
|
164 | 211 | msgstr ""
|
| 212 | +"Si el resultado del Future todavía no está disponible, este método lanza una " |
| 213 | +"excepción :exc:`InvalidStateError`." |
165 | 214 |
|
166 | 215 | #: ../Doc/library/asyncio-future.rst:111
|
| 216 | +#, fuzzy |
167 | 217 | msgid "Mark the Future as *done* and set its result."
|
168 |
| -msgstr "" |
| 218 | +msgstr "Marca el Future como *done* y establece su resultado." |
169 | 219 |
|
170 | 220 | #: ../Doc/library/asyncio-future.rst:113 ../Doc/library/asyncio-future.rst:120
|
| 221 | +#, fuzzy |
171 | 222 | msgid ""
|
172 | 223 | "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*." |
174 | 225 |
|
175 | 226 | #: ../Doc/library/asyncio-future.rst:118
|
| 227 | +#, fuzzy |
176 | 228 | msgid "Mark the Future as *done* and set an exception."
|
177 |
| -msgstr "" |
| 229 | +msgstr "Marca el Future como *done* y establece una excepción." |
178 | 230 |
|
179 | 231 | #: ../Doc/library/asyncio-future.rst:125
|
| 232 | +#, fuzzy |
180 | 233 | msgid "Return ``True`` if the Future is *done*."
|
181 |
| -msgstr "" |
| 234 | +msgstr "Devuelve ``True`` si el Future está *done*." |
182 | 235 |
|
183 | 236 | #: ../Doc/library/asyncio-future.rst:127
|
| 237 | +#, fuzzy |
184 | 238 | msgid ""
|
185 | 239 | "A Future is *done* if it was *cancelled* or if it has a result or an "
|
186 | 240 | "exception set with :meth:`set_result` or :meth:`set_exception` calls."
|
187 | 241 | 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`." |
188 | 245 |
|
189 | 246 | #: ../Doc/library/asyncio-future.rst:133
|
| 247 | +#, fuzzy |
190 | 248 | msgid "Return ``True`` if the Future was *cancelled*."
|
191 |
| -msgstr "" |
| 249 | +msgstr "Devuelve ``True`` si el Future fue *cancelled*." |
192 | 250 |
|
193 | 251 | #: ../Doc/library/asyncio-future.rst:135
|
| 252 | +#, fuzzy |
194 | 253 | msgid ""
|
195 | 254 | "The method is usually used to check if a Future is not *cancelled* before "
|
196 | 255 | "setting a result or an exception for it::"
|
197 | 256 | 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::" |
198 | 259 |
|
199 | 260 | #: ../Doc/library/asyncio-future.rst:143
|
200 | 261 | msgid "Add a callback to be run when the Future is *done*."
|
201 | 262 | msgstr ""
|
| 263 | +"Añade una retrollamada (*callback*) a ser ejecutada cuando el Future es " |
| 264 | +"*done*." |
202 | 265 |
|
203 | 266 | #: ../Doc/library/asyncio-future.rst:145
|
204 | 267 | msgid "The *callback* is called with the Future object as its only argument."
|
205 | 268 | msgstr ""
|
| 269 | +"La retrollamada (*callback*) es llamada con el objeto Future como su único " |
| 270 | +"argumento." |
206 | 271 |
|
207 | 272 | #: ../Doc/library/asyncio-future.rst:148
|
208 | 273 | msgid ""
|
209 | 274 | "If the Future is already *done* when this method is called, the callback is "
|
210 | 275 | "scheduled with :meth:`loop.call_soon`."
|
211 | 276 | msgstr ""
|
| 277 | +"Si el Future ya es *done* cuando se llama a este método, la retrollamada " |
| 278 | +"(*callback*) es programada con :meth:`loop.call_soon`." |
212 | 279 |
|
213 | 280 | #: ../Doc/library/asyncio-future.rst:151
|
214 | 281 | msgid ""
|
215 | 282 | "An optional keyword-only *context* argument allows specifying a custom :"
|
216 | 283 | "class:`contextvars.Context` for the *callback* to run in. The current "
|
217 | 284 | "context is used when no *context* is provided."
|
218 | 285 | 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*)." |
219 | 290 |
|
220 | 291 | #: ../Doc/library/asyncio-future.rst:155
|
221 | 292 | msgid ""
|
222 | 293 | ":func:`functools.partial` can be used to pass parameters to the callback, e."
|
223 | 294 | "g.::"
|
224 | 295 | msgstr ""
|
| 296 | +":func:`functools.partial` se puede utilizar para dar parámetros a la " |
| 297 | +"retrollamada (*callback*), por ejemplo::" |
225 | 298 |
|
226 | 299 | #: ../Doc/library/asyncio-future.rst:162
|
227 | 300 | msgid ""
|
|
0 commit comments