Skip to content

Commit 368025e

Browse files
cmaureirerickisos
andauthored
Traducido library/asyncio-extending (#2264)
Closes #1954 --------- Co-authored-by: Erick G. Islas-Osuna <erickisos653@gmail.com>
1 parent 3d09d50 commit 368025e

File tree

1 file changed

+46
-14
lines changed

1 file changed

+46
-14
lines changed

library/asyncio-extending.po

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,41 +20,53 @@ msgstr ""
2020

2121
#: ../Doc/library/asyncio-extending.rst:6
2222
msgid "Extending"
23-
msgstr ""
23+
msgstr "Extensión"
2424

2525
#: ../Doc/library/asyncio-extending.rst:8
2626
msgid ""
2727
"The main direction for :mod:`asyncio` extending is writing custom *event "
2828
"loop* classes. Asyncio has helpers that could be used to simplify this task."
2929
msgstr ""
30+
"La dirección principal para extender :mod:`asyncio` es escribir clases "
31+
"*event loop* personalizadas. Asyncio tiene ayudantes que podrían usarse para "
32+
"simplificar esta tarea."
3033

3134
#: ../Doc/library/asyncio-extending.rst:13
3235
msgid ""
3336
"Third-parties should reuse existing asyncio code with caution, a new Python "
3437
"version is free to break backward compatibility in *internal* part of API."
3538
msgstr ""
39+
"Los terceros deben reutilizar el código asyncio existente con precaución, "
40+
"una nueva versión de Python es gratuita para romper la compatibilidad con "
41+
"versiones anteriores en la parte *internal* de la API."
3642

3743
#: ../Doc/library/asyncio-extending.rst:19
3844
msgid "Writing a Custom Event Loop"
39-
msgstr ""
45+
msgstr "Escribir un bucle de eventos personalizado"
4046

4147
#: ../Doc/library/asyncio-extending.rst:21
4248
msgid ""
4349
":class:`asyncio.AbstractEventLoop` declares very many methods. Implementing "
4450
"all them from scratch is a tedious job."
4551
msgstr ""
52+
":class:`asyncio.AbstractEventLoop` declara muchos métodos. Implementarlos "
53+
"todos desde cero es un trabajo tedioso."
4654

4755
#: ../Doc/library/asyncio-extending.rst:24
4856
msgid ""
4957
"A loop can get many common methods implementation for free by inheriting "
5058
"from :class:`asyncio.BaseEventLoop`."
5159
msgstr ""
60+
"Un bucle puede obtener la implementación de muchos métodos comunes de forma "
61+
"gratuita al heredar de :class:`asyncio.BaseEventLoop`."
5262

5363
#: ../Doc/library/asyncio-extending.rst:27
5464
msgid ""
5565
"In turn, the successor should implement a bunch of *private* methods "
5666
"declared but not implemented in :class:`asyncio.BaseEventLoop`."
5767
msgstr ""
68+
"A su vez, el sucesor debería implementar un montón de métodos *privados* "
69+
"declarados pero no implementados en :class:`asyncio.BaseEventLoop`."
5870

5971
#: ../Doc/library/asyncio-extending.rst:30
6072
msgid ""
@@ -63,94 +75,114 @@ msgid ""
6375
"implemented by inherited class. The ``_make_socket_transport()`` method is "
6476
"not documented and is considered as an *internal* API."
6577
msgstr ""
78+
"Por ejemplo, ``loop.create_connection()`` comprueba los argumentos, resuelve "
79+
"las direcciones DNS y llama a ``loop._make_socket_transport()`` que debería "
80+
"implementar la clase heredada. El método ``_make_socket_transport()`` no "
81+
"está documentado y se considera como una API *internal*."
6682

6783
#: ../Doc/library/asyncio-extending.rst:38
6884
msgid "Future and Task private constructors"
69-
msgstr ""
85+
msgstr "Constructores privados Future y Task"
7086

7187
#: ../Doc/library/asyncio-extending.rst:40
7288
msgid ""
7389
":class:`asyncio.Future` and :class:`asyncio.Task` should be never created "
7490
"directly, please use corresponding :meth:`loop.create_future` and :meth:"
7591
"`loop.create_task`, or :func:`asyncio.create_task` factories instead."
7692
msgstr ""
93+
":class:`asyncio.Future` y :class:`asyncio.Task` nunca deben crearse "
94+
"directamente; en su lugar, utilice las fábricas :meth:`loop.create_future` "
95+
"y :meth:`loop.create_task` o :func:`asyncio.create_task` correspondientes."
7796

7897
#: ../Doc/library/asyncio-extending.rst:44
7998
msgid ""
8099
"However, third-party *event loops* may *reuse* built-in future and task "
81100
"implementations for the sake of getting a complex and highly optimized code "
82101
"for free."
83102
msgstr ""
103+
"Sin embargo, *event loops* de terceros puede *reuse* incorporar futuras "
104+
"implementaciones y tareas con el fin de obtener un código complejo y "
105+
"altamente optimizado de forma gratuita."
84106

85107
#: ../Doc/library/asyncio-extending.rst:47
86108
msgid "For this purpose the following, *private* constructors are listed:"
87-
msgstr ""
109+
msgstr "Para ello se listan los siguientes constructores *private*:"
88110

89111
#: ../Doc/library/asyncio-extending.rst:51
90112
msgid "Create a built-in future instance."
91-
msgstr ""
113+
msgstr "Cree una instancia futura integrada."
92114

93115
#: ../Doc/library/asyncio-extending.rst:53
94116
msgid "*loop* is an optional event loop instance."
95-
msgstr ""
117+
msgstr "*loop* es una instancia de bucle de eventos opcional."
96118

97119
#: ../Doc/library/asyncio-extending.rst:57
98120
msgid "Create a built-in task instance."
99-
msgstr ""
121+
msgstr "Cree una instancia de tarea integrada."
100122

101123
#: ../Doc/library/asyncio-extending.rst:59
102124
msgid ""
103125
"*loop* is an optional event loop instance. The rest of arguments are "
104126
"described in :meth:`loop.create_task` description."
105127
msgstr ""
128+
"*loop* es una instancia de bucle de eventos opcional. El resto de argumentos "
129+
"se describen en la descripción de :meth:`loop.create_task`."
106130

107131
#: ../Doc/library/asyncio-extending.rst:64
108132
msgid "*context* argument is added."
109-
msgstr ""
133+
msgstr "Se agrega el argumento *context*."
110134

111135
#: ../Doc/library/asyncio-extending.rst:69
112136
msgid "Task lifetime support"
113-
msgstr ""
137+
msgstr "Soporte de por vida de tareas"
114138

115139
#: ../Doc/library/asyncio-extending.rst:71
116140
msgid ""
117141
"A third party task implementation should call the following functions to "
118142
"keep a task visible by :func:`asyncio.get_tasks` and :func:`asyncio."
119143
"current_task`:"
120144
msgstr ""
145+
"La implementación de una tarea de terceros debe llamar a las siguientes "
146+
"funciones para mantener una tarea visible para :func:`asyncio.get_tasks` y :"
147+
"func:`asyncio.current_task`:"
121148

122149
#: ../Doc/library/asyncio-extending.rst:76
123150
msgid "Register a new *task* as managed by *asyncio*."
124-
msgstr ""
151+
msgstr "Registre un nuevo *task* como administrado por *asyncio*."
125152

126153
#: ../Doc/library/asyncio-extending.rst:78
127154
msgid "Call the function from a task constructor."
128-
msgstr ""
155+
msgstr "Llame a la función desde un constructor de tareas."
129156

130157
#: ../Doc/library/asyncio-extending.rst:82
131158
msgid "Unregister a *task* from *asyncio* internal structures."
132159
msgstr ""
160+
"Anule el registro de un *task* de las estructuras internas de *asyncio*."
133161

134162
#: ../Doc/library/asyncio-extending.rst:84
135163
msgid "The function should be called when a task is about to finish."
136-
msgstr ""
164+
msgstr "La función debe llamarse cuando una tarea está a punto de finalizar."
137165

138166
#: ../Doc/library/asyncio-extending.rst:88
139167
msgid "Switch the current task to the *task* argument."
140-
msgstr ""
168+
msgstr "Cambie la tarea actual al argumento *task*."
141169

142170
#: ../Doc/library/asyncio-extending.rst:90
143171
msgid ""
144172
"Call the function just before executing a portion of embedded *coroutine* (:"
145173
"meth:`coroutine.send` or :meth:`coroutine.throw`)."
146174
msgstr ""
175+
"Llame a la función justo antes de ejecutar una parte del *coroutine* "
176+
"incrustado (:meth:`coroutine.send` o :meth:`coroutine.throw`)."
147177

148178
#: ../Doc/library/asyncio-extending.rst:95
149179
msgid "Switch the current task back from *task* to ``None``."
150-
msgstr ""
180+
msgstr "Vuelva a cambiar la tarea actual de *task* a ``None``."
151181

152182
#: ../Doc/library/asyncio-extending.rst:97
153183
msgid ""
154184
"Call the function just after :meth:`coroutine.send` or :meth:`coroutine."
155185
"throw` execution."
156186
msgstr ""
187+
"Llame a la función justo después de la ejecución de :meth:`coroutine.send` "
188+
"o :meth:`coroutine.throw`."

0 commit comments

Comments
 (0)