@@ -20,41 +20,53 @@ msgstr ""
20
20
21
21
#: ../Doc/library/asyncio-extending.rst:6
22
22
msgid "Extending"
23
- msgstr ""
23
+ msgstr "Extensión "
24
24
25
25
#: ../Doc/library/asyncio-extending.rst:8
26
26
msgid ""
27
27
"The main direction for :mod:`asyncio` extending is writing custom *event "
28
28
"loop* classes. Asyncio has helpers that could be used to simplify this task."
29
29
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."
30
33
31
34
#: ../Doc/library/asyncio-extending.rst:13
32
35
msgid ""
33
36
"Third-parties should reuse existing asyncio code with caution, a new Python "
34
37
"version is free to break backward compatibility in *internal* part of API."
35
38
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."
36
42
37
43
#: ../Doc/library/asyncio-extending.rst:19
38
44
msgid "Writing a Custom Event Loop"
39
- msgstr ""
45
+ msgstr "Escribir un bucle de eventos personalizado "
40
46
41
47
#: ../Doc/library/asyncio-extending.rst:21
42
48
msgid ""
43
49
":class:`asyncio.AbstractEventLoop` declares very many methods. Implementing "
44
50
"all them from scratch is a tedious job."
45
51
msgstr ""
52
+ ":class:`asyncio.AbstractEventLoop` declara muchos métodos. Implementarlos "
53
+ "todos desde cero es un trabajo tedioso."
46
54
47
55
#: ../Doc/library/asyncio-extending.rst:24
48
56
msgid ""
49
57
"A loop can get many common methods implementation for free by inheriting "
50
58
"from :class:`asyncio.BaseEventLoop`."
51
59
msgstr ""
60
+ "Un bucle puede obtener la implementación de muchos métodos comunes de forma "
61
+ "gratuita al heredar de :class:`asyncio.BaseEventLoop`."
52
62
53
63
#: ../Doc/library/asyncio-extending.rst:27
54
64
msgid ""
55
65
"In turn, the successor should implement a bunch of *private* methods "
56
66
"declared but not implemented in :class:`asyncio.BaseEventLoop`."
57
67
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`."
58
70
59
71
#: ../Doc/library/asyncio-extending.rst:30
60
72
msgid ""
@@ -63,94 +75,114 @@ msgid ""
63
75
"implemented by inherited class. The ``_make_socket_transport()`` method is "
64
76
"not documented and is considered as an *internal* API."
65
77
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*."
66
82
67
83
#: ../Doc/library/asyncio-extending.rst:38
68
84
msgid "Future and Task private constructors"
69
- msgstr ""
85
+ msgstr "Constructores privados Future y Task "
70
86
71
87
#: ../Doc/library/asyncio-extending.rst:40
72
88
msgid ""
73
89
":class:`asyncio.Future` and :class:`asyncio.Task` should be never created "
74
90
"directly, please use corresponding :meth:`loop.create_future` and :meth:"
75
91
"`loop.create_task`, or :func:`asyncio.create_task` factories instead."
76
92
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."
77
96
78
97
#: ../Doc/library/asyncio-extending.rst:44
79
98
msgid ""
80
99
"However, third-party *event loops* may *reuse* built-in future and task "
81
100
"implementations for the sake of getting a complex and highly optimized code "
82
101
"for free."
83
102
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."
84
106
85
107
#: ../Doc/library/asyncio-extending.rst:47
86
108
msgid "For this purpose the following, *private* constructors are listed:"
87
- msgstr ""
109
+ msgstr "Para ello se listan los siguientes constructores *private*: "
88
110
89
111
#: ../Doc/library/asyncio-extending.rst:51
90
112
msgid "Create a built-in future instance."
91
- msgstr ""
113
+ msgstr "Cree una instancia futura integrada. "
92
114
93
115
#: ../Doc/library/asyncio-extending.rst:53
94
116
msgid "*loop* is an optional event loop instance."
95
- msgstr ""
117
+ msgstr "*loop* es una instancia de bucle de eventos opcional. "
96
118
97
119
#: ../Doc/library/asyncio-extending.rst:57
98
120
msgid "Create a built-in task instance."
99
- msgstr ""
121
+ msgstr "Cree una instancia de tarea integrada. "
100
122
101
123
#: ../Doc/library/asyncio-extending.rst:59
102
124
msgid ""
103
125
"*loop* is an optional event loop instance. The rest of arguments are "
104
126
"described in :meth:`loop.create_task` description."
105
127
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`."
106
130
107
131
#: ../Doc/library/asyncio-extending.rst:64
108
132
msgid "*context* argument is added."
109
- msgstr ""
133
+ msgstr "Se agrega el argumento *context*. "
110
134
111
135
#: ../Doc/library/asyncio-extending.rst:69
112
136
msgid "Task lifetime support"
113
- msgstr ""
137
+ msgstr "Soporte de por vida de tareas "
114
138
115
139
#: ../Doc/library/asyncio-extending.rst:71
116
140
msgid ""
117
141
"A third party task implementation should call the following functions to "
118
142
"keep a task visible by :func:`asyncio.get_tasks` and :func:`asyncio."
119
143
"current_task`:"
120
144
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`:"
121
148
122
149
#: ../Doc/library/asyncio-extending.rst:76
123
150
msgid "Register a new *task* as managed by *asyncio*."
124
- msgstr ""
151
+ msgstr "Registre un nuevo *task* como administrado por *asyncio*. "
125
152
126
153
#: ../Doc/library/asyncio-extending.rst:78
127
154
msgid "Call the function from a task constructor."
128
- msgstr ""
155
+ msgstr "Llame a la función desde un constructor de tareas. "
129
156
130
157
#: ../Doc/library/asyncio-extending.rst:82
131
158
msgid "Unregister a *task* from *asyncio* internal structures."
132
159
msgstr ""
160
+ "Anule el registro de un *task* de las estructuras internas de *asyncio*."
133
161
134
162
#: ../Doc/library/asyncio-extending.rst:84
135
163
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. "
137
165
138
166
#: ../Doc/library/asyncio-extending.rst:88
139
167
msgid "Switch the current task to the *task* argument."
140
- msgstr ""
168
+ msgstr "Cambie la tarea actual al argumento *task*. "
141
169
142
170
#: ../Doc/library/asyncio-extending.rst:90
143
171
msgid ""
144
172
"Call the function just before executing a portion of embedded *coroutine* (:"
145
173
"meth:`coroutine.send` or :meth:`coroutine.throw`)."
146
174
msgstr ""
175
+ "Llame a la función justo antes de ejecutar una parte del *coroutine* "
176
+ "incrustado (:meth:`coroutine.send` o :meth:`coroutine.throw`)."
147
177
148
178
#: ../Doc/library/asyncio-extending.rst:95
149
179
msgid "Switch the current task back from *task* to ``None``."
150
- msgstr ""
180
+ msgstr "Vuelva a cambiar la tarea actual de *task* a ``None``. "
151
181
152
182
#: ../Doc/library/asyncio-extending.rst:97
153
183
msgid ""
154
184
"Call the function just after :meth:`coroutine.send` or :meth:`coroutine."
155
185
"throw` execution."
156
186
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