-
-
Notifications
You must be signed in to change notification settings - Fork 405
Expand file tree
/
Copy pathasyncio-extending.po
More file actions
189 lines (162 loc) · 7.43 KB
/
asyncio-extending.po
File metadata and controls
189 lines (162 loc) · 7.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2022, Python Software Foundation
# This file is distributed under the same license as the Python en Español
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: Python en Español 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-12 19:43+0200\n"
"PO-Revision-Date: 2023-11-01 13:59+0100\n"
"Last-Translator: Marcos Medrano <marcosmedrano0@gmail.com>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.13.0\n"
"X-Generator: Poedit 3.4\n"
#: ../Doc/library/asyncio-extending.rst:6
msgid "Extending"
msgstr "Extensión"
#: ../Doc/library/asyncio-extending.rst:8
msgid ""
"The main direction for :mod:`asyncio` extending is writing custom *event "
"loop* classes. Asyncio has helpers that could be used to simplify this task."
msgstr ""
"La dirección principal para extender :mod:`asyncio` es escribir clases "
"*event loop* personalizadas. Asyncio tiene ayudantes que podrían usarse para "
"simplificar esta tarea."
#: ../Doc/library/asyncio-extending.rst:13
msgid ""
"Third-parties should reuse existing asyncio code with caution, a new Python "
"version is free to break backward compatibility in *internal* part of API."
msgstr ""
"Los terceros deben reutilizar el código asyncio existente con precaución, "
"una nueva versión de Python es gratuita para romper la compatibilidad con "
"versiones anteriores en la parte *internal* de la API."
#: ../Doc/library/asyncio-extending.rst:19
msgid "Writing a Custom Event Loop"
msgstr "Escribir un bucle de eventos personalizado"
#: ../Doc/library/asyncio-extending.rst:21
msgid ""
":class:`asyncio.AbstractEventLoop` declares very many methods. Implementing "
"all them from scratch is a tedious job."
msgstr ""
":class:`asyncio.AbstractEventLoop` declara muchos métodos. Implementarlos "
"todos desde cero es un trabajo tedioso."
#: ../Doc/library/asyncio-extending.rst:24
msgid ""
"A loop can get many common methods implementation for free by inheriting "
"from :class:`asyncio.BaseEventLoop`."
msgstr ""
"Un bucle puede obtener la implementación de muchos métodos comunes de forma "
"gratuita al heredar de :class:`asyncio.BaseEventLoop`."
#: ../Doc/library/asyncio-extending.rst:27
msgid ""
"In turn, the successor should implement a bunch of *private* methods "
"declared but not implemented in :class:`asyncio.BaseEventLoop`."
msgstr ""
"A su vez, el sucesor debería implementar un montón de métodos *privados* "
"declarados pero no implementados en :class:`asyncio.BaseEventLoop`."
#: ../Doc/library/asyncio-extending.rst:30
msgid ""
"For example, ``loop.create_connection()`` checks arguments, resolves DNS "
"addresses, and calls ``loop._make_socket_transport()`` that should be "
"implemented by inherited class. The ``_make_socket_transport()`` method is "
"not documented and is considered as an *internal* API."
msgstr ""
"Por ejemplo, ``loop.create_connection()`` comprueba los argumentos, resuelve "
"las direcciones DNS y llama a ``loop._make_socket_transport()`` que debería "
"implementar la clase heredada. El método ``_make_socket_transport()`` no "
"está documentado y se considera como una API *internal*."
#: ../Doc/library/asyncio-extending.rst:38
msgid "Future and Task private constructors"
msgstr "Constructores privados Future y Task"
#: ../Doc/library/asyncio-extending.rst:40
msgid ""
":class:`asyncio.Future` and :class:`asyncio.Task` should be never created "
"directly, please use corresponding :meth:`loop.create_future` and :meth:"
"`loop.create_task`, or :func:`asyncio.create_task` factories instead."
msgstr ""
":class:`asyncio.Future` y :class:`asyncio.Task` nunca deben crearse "
"directamente; en su lugar, utilice las fábricas :meth:`loop.create_future` "
"y :meth:`loop.create_task` o :func:`asyncio.create_task` correspondientes."
#: ../Doc/library/asyncio-extending.rst:44
msgid ""
"However, third-party *event loops* may *reuse* built-in future and task "
"implementations for the sake of getting a complex and highly optimized code "
"for free."
msgstr ""
"Sin embargo, *event loops* de terceros puede *reuse* incorporar futuras "
"implementaciones y tareas con el fin de obtener un código complejo y "
"altamente optimizado de forma gratuita."
#: ../Doc/library/asyncio-extending.rst:47
msgid "For this purpose the following, *private* constructors are listed:"
msgstr "Para ello se listan los siguientes constructores *private*:"
#: ../Doc/library/asyncio-extending.rst:51
msgid "Create a built-in future instance."
msgstr "Cree una instancia futura integrada."
#: ../Doc/library/asyncio-extending.rst:53
msgid "*loop* is an optional event loop instance."
msgstr "*loop* es una instancia de bucle de eventos opcional."
#: ../Doc/library/asyncio-extending.rst:57
msgid "Create a built-in task instance."
msgstr "Cree una instancia de tarea integrada."
#: ../Doc/library/asyncio-extending.rst:59
msgid ""
"*loop* is an optional event loop instance. The rest of arguments are "
"described in :meth:`loop.create_task` description."
msgstr ""
"*loop* es una instancia de bucle de eventos opcional. El resto de argumentos "
"se describen en la descripción de :meth:`loop.create_task`."
#: ../Doc/library/asyncio-extending.rst:64
msgid "*context* argument is added."
msgstr "Se agrega el argumento *context*."
#: ../Doc/library/asyncio-extending.rst:69
msgid "Task lifetime support"
msgstr "Soporte de por vida de tareas"
#: ../Doc/library/asyncio-extending.rst:71
msgid ""
"A third party task implementation should call the following functions to "
"keep a task visible by :func:`asyncio.all_tasks` and :func:`asyncio."
"current_task`:"
msgstr ""
"La implementación de una tarea de terceros debe llamar a las siguientes "
"funciones para mantener una tarea visible para :func:`asyncio.all_tasks` y :"
"func:`asyncio.current_task`:"
#: ../Doc/library/asyncio-extending.rst:76
msgid "Register a new *task* as managed by *asyncio*."
msgstr "Registre un nuevo *task* como administrado por *asyncio*."
#: ../Doc/library/asyncio-extending.rst:78
msgid "Call the function from a task constructor."
msgstr "Llame a la función desde un constructor de tareas."
#: ../Doc/library/asyncio-extending.rst:82
msgid "Unregister a *task* from *asyncio* internal structures."
msgstr ""
"Anule el registro de un *task* de las estructuras internas de *asyncio*."
#: ../Doc/library/asyncio-extending.rst:84
msgid "The function should be called when a task is about to finish."
msgstr "La función debe llamarse cuando una tarea está a punto de finalizar."
#: ../Doc/library/asyncio-extending.rst:88
msgid "Switch the current task to the *task* argument."
msgstr "Cambie la tarea actual al argumento *task*."
#: ../Doc/library/asyncio-extending.rst:90
msgid ""
"Call the function just before executing a portion of embedded *coroutine* (:"
"meth:`coroutine.send` or :meth:`coroutine.throw`)."
msgstr ""
"Llame a la función justo antes de ejecutar una parte del *coroutine* "
"incrustado (:meth:`coroutine.send` o :meth:`coroutine.throw`)."
#: ../Doc/library/asyncio-extending.rst:95
msgid "Switch the current task back from *task* to ``None``."
msgstr "Vuelva a cambiar la tarea actual de *task* a ``None``."
#: ../Doc/library/asyncio-extending.rst:97
msgid ""
"Call the function just after :meth:`coroutine.send` or :meth:`coroutine."
"throw` execution."
msgstr ""
"Llame a la función justo después de la ejecución de :meth:`coroutine.send` "
"o :meth:`coroutine.throw`."