1
0
Fork 0
python-docs-fr/library/asyncio-eventloop.po

1973 lines
64 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
2019-10-09 16:10:12 +00:00
"POT-Creation-Date: 2019-10-09 17:54+0200\n"
"PO-Revision-Date: 2019-06-10 15:50+0200\n"
2018-07-05 09:39:28 +00:00
"Last-Translator: Julien Palard <julien@palard.fr>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.0.2\n"
2016-10-30 09:46:26 +00:00
#: ../Doc/library/asyncio-eventloop.rst:6
2018-10-13 15:54:03 +00:00
msgid "Event Loop"
2018-10-14 22:47:12 +00:00
msgstr "Boucle d'évènements"
2017-08-01 11:29:09 +00:00
#: ../Doc/library/asyncio-eventloop.rst:10
2018-10-13 15:54:03 +00:00
msgid "Preface"
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:11
msgid ""
"The event loop is the core of every asyncio application. Event loops run "
"asynchronous tasks and callbacks, perform network IO operations, and run "
"subprocesses."
2016-10-30 09:46:26 +00:00
msgstr ""
2017-08-01 11:29:09 +00:00
#: ../Doc/library/asyncio-eventloop.rst:15
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Application developers should typically use the high-level asyncio "
"functions, such as :func:`asyncio.run`, and should rarely need to reference "
"the loop object or call its methods. This section is intended mostly for "
"authors of lower-level code, libraries, and frameworks, who need finer "
"control over the event loop behavior."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:22
msgid "Obtaining the Event Loop"
msgstr "Obtenir une boucle d'évènements"
#: ../Doc/library/asyncio-eventloop.rst:23
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The following low-level functions can be used to get, set, or create an "
"event loop:"
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:28
msgid "Return the running event loop in the current OS thread."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:30
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If there is no running event loop a :exc:`RuntimeError` is raised. This "
"function can only be called from a coroutine or a callback."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:37
msgid ""
"Get the current event loop. If there is no current event loop set in the "
"current OS thread and :func:`set_event_loop` has not yet been called, "
"asyncio will create a new event loop and set it as the current one."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:42
msgid ""
"Because this function has rather complex behavior (especially when custom "
"event loop policies are in use), using the :func:`get_running_loop` function "
"is preferred to :func:`get_event_loop` in coroutines and callbacks."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:47
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Consider also using the :func:`asyncio.run` function instead of using lower "
"level functions to manually create and close an event loop."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:52
msgid "Set *loop* as a current event loop for the current OS thread."
2016-10-30 09:46:26 +00:00
msgstr ""
2017-08-01 11:29:09 +00:00
#: ../Doc/library/asyncio-eventloop.rst:56
2018-10-13 15:54:03 +00:00
msgid "Create a new event loop object."
msgstr ""
2016-10-30 09:46:26 +00:00
2017-08-01 11:29:09 +00:00
#: ../Doc/library/asyncio-eventloop.rst:58
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Note that the behaviour of :func:`get_event_loop`, :func:`set_event_loop`, "
"and :func:`new_event_loop` functions can be altered by :ref:`setting a "
"custom event loop policy <asyncio-policies>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:64
msgid "Contents"
msgstr "Sommaire"
2016-10-30 09:46:26 +00:00
2017-08-01 11:29:09 +00:00
#: ../Doc/library/asyncio-eventloop.rst:65
2018-10-13 15:54:03 +00:00
msgid "This documentation page contains the following sections:"
msgstr ""
2016-10-30 09:46:26 +00:00
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:67
msgid ""
"The `Event Loop Methods`_ section is the reference documentation of the "
"event loop APIs;"
msgstr ""
2016-10-30 09:46:26 +00:00
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:70
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The `Callback Handles`_ section documents the :class:`Handle` and :class:"
"`TimerHandle` instances which are returned from scheduling methods such as :"
"meth:`loop.call_soon` and :meth:`loop.call_later`;"
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:74
msgid ""
"The `Server Objects`_ section documents types returned from event loop "
"methods like :meth:`loop.create_server`;"
msgstr ""
2016-10-30 09:46:26 +00:00
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:77
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The `Event Loop Implementations`_ section documents the :class:"
"`SelectorEventLoop` and :class:`ProactorEventLoop` classes;"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:80
msgid ""
"The `Examples`_ section showcases how to work with some event loop APIs."
2016-10-30 09:46:26 +00:00
msgstr ""
2017-08-01 11:29:09 +00:00
#: ../Doc/library/asyncio-eventloop.rst:87
2018-10-13 15:54:03 +00:00
msgid "Event Loop Methods"
msgstr "Méthodes de la boucle d'évènements"
#: ../Doc/library/asyncio-eventloop.rst:89
msgid "Event loops have **low-level** APIs for the following:"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:97
msgid "Running and stopping the loop"
msgstr "Démarrer et arrêter une boucle d'évènements"
#: ../Doc/library/asyncio-eventloop.rst:101
msgid "Run until the *future* (an instance of :class:`Future`) has completed."
msgstr ""
"Lance la boucle jusqu'à ce que *future* (une instance de :class:`Future`) "
"soit terminée."
#: ../Doc/library/asyncio-eventloop.rst:104
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If the argument is a :ref:`coroutine object <coroutine>` it is implicitly "
"scheduled to run as a :class:`asyncio.Task`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:107
msgid "Return the Future's result or raise its exception."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:111
msgid "Run the event loop until :meth:`stop` is called."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:113
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If :meth:`stop` is called before :meth:`run_forever()` is called, the loop "
"will poll the I/O selector once with a timeout of zero, run all callbacks "
"scheduled in response to I/O events (and those that were already scheduled), "
"and then exit."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:118
2017-04-02 20:14:06 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If :meth:`stop` is called while :meth:`run_forever` is running, the loop "
"will run the current batch of callbacks and then exit. Note that new "
"callbacks scheduled by callbacks will not run in this case; instead, they "
"will run the next time :meth:`run_forever` or :meth:`run_until_complete` is "
"called."
2017-04-02 20:14:06 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:126
msgid "Stop the event loop."
msgstr "Arrête l'exécution de la boucle d'évènements."
#: ../Doc/library/asyncio-eventloop.rst:130
msgid "Return ``True`` if the event loop is currently running."
msgstr "Renvoie ``True`` si la boucle d'évènements est démarrée."
#: ../Doc/library/asyncio-eventloop.rst:134
msgid "Return ``True`` if the event loop was closed."
2018-10-14 22:47:12 +00:00
msgstr "Renvoie ``True`` si la boucle d'évènements est arrêtée."
2016-10-30 09:46:26 +00:00
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:138
msgid "Close the event loop."
2018-10-14 22:47:12 +00:00
msgstr "Arrête la boucle d'évènements."
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:140
2016-10-30 09:46:26 +00:00
msgid ""
2018-11-29 15:13:39 +00:00
"The loop must not be running when this function is called. Any pending "
"callbacks will be discarded."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:143
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This method clears all queues and shuts down the executor, but does not wait "
"for the executor to finish."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:146
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This method is idempotent and irreversible. No other methods should be "
"called after the event loop is closed."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:151
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Schedule all currently open :term:`asynchronous generator` objects to close "
"with an :meth:`~agen.aclose()` call. After calling this method, the event "
"loop will issue a warning if a new asynchronous generator is iterated. This "
"should be used to reliably finalize all scheduled asynchronous generators."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:157
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Note that there is no need to call this function when :func:`asyncio.run` is "
"used."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:160
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1030
#: ../Doc/library/asyncio-eventloop.rst:1412
2018-10-13 15:54:03 +00:00
msgid "Example::"
msgstr "Exemple ::"
#: ../Doc/library/asyncio-eventloop.rst:172
msgid "Scheduling callbacks"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:176
msgid ""
"Schedule a *callback* to be called with *args* arguments at the next "
"iteration of the event loop."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:179
msgid ""
"Callbacks are called in the order in which they are registered. Each "
"callback will be called exactly once."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:182
#: ../Doc/library/asyncio-eventloop.rst:245
2018-06-28 13:32:56 +00:00
msgid ""
"An optional keyword-only *context* argument allows specifying a custom :"
2018-10-13 15:54:03 +00:00
"class:`contextvars.Context` for the *callback* to run in. The current "
2018-06-28 13:32:56 +00:00
"context is used when no *context* is provided."
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:186
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"An instance of :class:`asyncio.Handle` is returned, which can be used later "
"to cancel the callback."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:189
msgid "This method is not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:193
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"A thread-safe variant of :meth:`call_soon`. Must be used to schedule "
"callbacks *from another thread*."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:196
msgid ""
"See the :ref:`concurrency and multithreading <asyncio-multithreading>` "
"section of the documentation."
msgstr ""
2019-05-28 12:44:15 +00:00
"Voir la section :ref:`exécution concurrente et multi-fils d'exécution "
"<asyncio-multithreading>` de la documentation."
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:199
#: ../Doc/library/asyncio-eventloop.rst:249
#: ../Doc/library/asyncio-eventloop.rst:269
2018-06-28 13:32:56 +00:00
msgid ""
"The *context* keyword-only parameter was added. See :pep:`567` for more "
"details."
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:207
msgid ""
"Most :mod:`asyncio` scheduling functions don't allow passing keyword "
"arguments. To do that, use :func:`functools.partial`::"
msgstr ""
2016-10-30 09:46:26 +00:00
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:214
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Using partial objects is usually more convenient than using lambdas, as "
"asyncio can render partial objects better in debug and error messages."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:222
msgid "Scheduling delayed callbacks"
msgstr ""
2016-10-30 09:46:26 +00:00
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:224
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Event loop provides mechanisms to schedule callback functions to be called "
"at some point in the future. Event loop uses monotonic clocks to track time."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:231
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Schedule *callback* to be called after the given *delay* number of seconds "
"(can be either an int or a float)."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:234
#: ../Doc/library/asyncio-eventloop.rst:266
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"An instance of :class:`asyncio.TimerHandle` is returned which can be used to "
"cancel the callback."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:237
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*callback* will be called exactly once. If two callbacks are scheduled for "
"exactly the same time, the order in which they are called is undefined."
2018-06-28 13:32:56 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:241
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The optional positional *args* will be passed to the callback when it is "
"called. If you want the callback to be called with keyword arguments use :"
"func:`functools.partial`."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:253
2016-10-30 09:46:26 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"In Python 3.7 and earlier with the default event loop implementation, the "
"*delay* could not exceed one day. This has been fixed in Python 3.8."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:260
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Schedule *callback* to be called at the given absolute timestamp *when* (an "
"int or a float), using the same time reference as :meth:`loop.time`."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:264
2016-10-30 09:46:26 +00:00
msgid "This method's behavior is the same as :meth:`call_later`."
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:273
msgid ""
2019-09-04 09:35:23 +00:00
"In Python 3.7 and earlier with the default event loop implementation, the "
2018-10-13 15:54:03 +00:00
"difference between *when* and the current time could not exceed one day. "
2019-09-04 09:35:23 +00:00
"This has been fixed in Python 3.8."
2018-10-13 15:54:03 +00:00
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:280
2016-10-30 09:46:26 +00:00
msgid ""
"Return the current time, as a :class:`float` value, according to the event "
2018-10-13 15:54:03 +00:00
"loop's internal monotonic clock."
2016-10-30 09:46:26 +00:00
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:284
2018-10-13 15:54:03 +00:00
msgid ""
"In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) "
"should not exceed one day. This has been fixed in Python 3.8."
2018-10-13 15:54:03 +00:00
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:290
2016-10-30 09:46:26 +00:00
msgid "The :func:`asyncio.sleep` function."
msgstr "La fonction :func:`asyncio.sleep`."
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:294
msgid "Creating Futures and Tasks"
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:298
msgid "Create an :class:`asyncio.Future` object attached to the event loop."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:300
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This is the preferred way to create Futures in asyncio. This lets third-"
"party event loops provide alternative implementations of the Future object "
2016-10-30 09:46:26 +00:00
"(with better performance or instrumentation)."
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:308
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Schedule the execution of a :ref:`coroutine`. Return a :class:`Task` object."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:311
2016-10-30 09:46:26 +00:00
msgid ""
"Third-party event loops can use their own subclass of :class:`Task` for "
"interoperability. In this case, the result type is a subclass of :class:"
"`Task`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:315
msgid ""
"If the *name* argument is provided and not ``None``, it is set as the name "
"of the task using :meth:`Task.set_name`."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:318
msgid "Added the ``name`` parameter."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:323
2018-10-13 15:54:03 +00:00
msgid "Set a task factory that will be used by :meth:`loop.create_task`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:326
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If *factory* is ``None`` the default task factory will be set. Otherwise, "
"*factory* must be a *callable* with the signature matching ``(loop, coro)``, "
"where *loop* is a reference to the active event loop, and *coro* is a "
"coroutine object. The callable must return a :class:`asyncio.Future`-"
"compatible object."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:334
2018-10-13 15:54:03 +00:00
msgid "Return a task factory or ``None`` if the default one is in use."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:338
2018-10-13 15:54:03 +00:00
msgid "Opening network connections"
2018-10-14 22:47:12 +00:00
msgstr "Créer des connexions"
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:346
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Open a streaming transport connection to a given address specified by *host* "
"and *port*."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:349
2018-10-13 15:54:03 +00:00
msgid ""
"The socket family can be either :py:data:`~socket.AF_INET` or :py:data:"
"`~socket.AF_INET6` depending on *host* (or the *family* argument, if "
"provided)."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:353
2018-10-13 15:54:03 +00:00
msgid "The socket type will be :py:data:`~socket.SOCK_STREAM`."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:355
#: ../Doc/library/asyncio-eventloop.rst:946
#: ../Doc/library/asyncio-eventloop.rst:962
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*protocol_factory* must be a callable returning an :ref:`asyncio protocol "
"<asyncio-protocol>` implementation."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:358
2016-10-30 09:46:26 +00:00
msgid ""
2018-06-28 13:32:56 +00:00
"This method will try to establish the connection in the background. When "
"successful, it returns a ``(transport, protocol)`` pair."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:361
2016-10-30 09:46:26 +00:00
msgid "The chronological synopsis of the underlying operation is as follows:"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:363
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The connection is established and a :ref:`transport <asyncio-transport>` is "
"created for it."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:366
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*protocol_factory* is called without arguments and is expected to return a :"
"ref:`protocol <asyncio-protocol>` instance."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:369
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The protocol instance is coupled with the transport by calling its :meth:"
"`~BaseProtocol.connection_made` method."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:372
2018-10-13 15:54:03 +00:00
msgid "A ``(transport, protocol)`` tuple is returned on success."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:374
2016-10-30 09:46:26 +00:00
msgid ""
"The created transport is an implementation-dependent bidirectional stream."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:377
#: ../Doc/library/asyncio-eventloop.rst:473
2018-10-13 15:54:03 +00:00
msgid "Other arguments:"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:379
2016-10-30 09:46:26 +00:00
msgid ""
"*ssl*: if given and not false, a SSL/TLS transport is created (by default a "
"plain TCP transport is created). If *ssl* is a :class:`ssl.SSLContext` "
"object, this context is used to create the transport; if *ssl* is :const:"
2018-10-13 15:54:03 +00:00
"`True`, a default context returned from :func:`ssl.create_default_context` "
"is used."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:385
2016-10-30 09:46:26 +00:00
msgid ":ref:`SSL/TLS security considerations <ssl-security>`"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:387
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*server_hostname* sets or overrides the hostname that the target server's "
"certificate will be matched against. Should only be passed if *ssl* is not "
"``None``. By default the value of the *host* argument is used. If *host* "
"is empty, there is no default and you must pass a value for "
"*server_hostname*. If *server_hostname* is an empty string, hostname "
"matching is disabled (which is a serious security risk, allowing for "
"potential man-in-the-middle attacks)."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:395
2016-10-30 09:46:26 +00:00
msgid ""
"*family*, *proto*, *flags* are the optional address family, protocol and "
"flags to be passed through to getaddrinfo() for *host* resolution. If given, "
"these should all be integers from the corresponding :mod:`socket` module "
"constants."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:400
msgid ""
"*happy_eyeballs_delay*, if given, enables Happy Eyeballs for this "
"connection. It should be a floating-point number representing the amount of "
"time in seconds to wait for a connection attempt to complete, before "
"starting the next attempt in parallel. This is the \"Connection Attempt Delay"
"\" as defined in :rfc:`8305`. A sensible default value recommended by the "
"RFC is ``0.25`` (250 milliseconds)."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:408
msgid ""
"*interleave* controls address reordering when a host name resolves to "
"multiple IP addresses. If ``0`` or unspecified, no reordering is done, and "
"addresses are tried in the order returned by :meth:`getaddrinfo`. If a "
"positive integer is specified, the addresses are interleaved by address "
"family, and the given integer is interpreted as \"First Address Family Count"
"\" as defined in :rfc:`8305`. The default is ``0`` if *happy_eyeballs_delay* "
"is not specified, and ``1`` if it is."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:417
2016-10-30 09:46:26 +00:00
msgid ""
"*sock*, if given, should be an existing, already connected :class:`socket."
"socket` object to be used by the transport. If *sock* is given, none of "
2019-09-04 09:35:23 +00:00
"*host*, *port*, *family*, *proto*, *flags*, *happy_eyeballs_delay*, "
"*interleave* and *local_addr* should be specified."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:423
2016-10-30 09:46:26 +00:00
msgid ""
"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind "
"the socket to locally. The *local_host* and *local_port* are looked up "
2018-10-13 15:54:03 +00:00
"using ``getaddrinfo()``, similarly to *host* and *port*."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:427
#: ../Doc/library/asyncio-eventloop.rst:755
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*ssl_handshake_timeout* is (for a TLS connection) the time in seconds to "
"wait for the TLS handshake to complete before aborting the connection. "
2018-06-28 13:32:56 +00:00
"``60.0`` seconds if ``None`` (default)."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:433
msgid "The *happy_eyeballs_delay* and *interleave* parameters."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:437
#: ../Doc/library/asyncio-eventloop.rst:540
#: ../Doc/library/asyncio-eventloop.rst:693
2018-06-28 13:32:56 +00:00
msgid "The *ssl_handshake_timeout* parameter."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:441
#: ../Doc/library/asyncio-eventloop.rst:623
2018-10-13 15:54:03 +00:00
msgid ""
"The socket option :py:data:`~socket.TCP_NODELAY` is set by default for all "
"TCP connections."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:446
#: ../Doc/library/asyncio-eventloop.rst:628
2018-10-13 15:54:03 +00:00
msgid "Added support for SSL/TLS in :class:`ProactorEventLoop`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:450
2018-10-13 15:54:03 +00:00
msgid ""
"The :func:`open_connection` function is a high-level alternative API. It "
"returns a pair of (:class:`StreamReader`, :class:`StreamWriter`) that can be "
"used directly in async/await code."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:460
2018-10-13 15:54:03 +00:00
msgid "Create a datagram connection."
2018-10-14 22:47:12 +00:00
msgstr "Créer une connexion par datagramme"
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:462
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The socket family can be either :py:data:`~socket.AF_INET`, :py:data:"
"`~socket.AF_INET6`, or :py:data:`~socket.AF_UNIX`, depending on *host* (or "
"the *family* argument, if provided)."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:466
2018-10-13 15:54:03 +00:00
msgid "The socket type will be :py:data:`~socket.SOCK_DGRAM`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:468
#: ../Doc/library/asyncio-eventloop.rst:565
#: ../Doc/library/asyncio-eventloop.rst:676
2016-10-30 09:46:26 +00:00
msgid ""
2018-06-28 13:32:56 +00:00
"*protocol_factory* must be a callable returning a :ref:`protocol <asyncio-"
2018-10-13 15:54:03 +00:00
"protocol>` implementation."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:471
#: ../Doc/library/asyncio-eventloop.rst:526
2018-10-13 15:54:03 +00:00
msgid "A tuple of ``(transport, protocol)`` is returned on success."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:475
2016-10-30 09:46:26 +00:00
msgid ""
"*local_addr*, if given, is a ``(local_host, local_port)`` tuple used to bind "
"the socket to locally. The *local_host* and *local_port* are looked up "
"using :meth:`getaddrinfo`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:479
2016-10-30 09:46:26 +00:00
msgid ""
"*remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used to "
"connect the socket to a remote address. The *remote_host* and *remote_port* "
"are looked up using :meth:`getaddrinfo`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:483
2016-10-30 09:46:26 +00:00
msgid ""
"*family*, *proto*, *flags* are the optional address family, protocol and "
"flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If "
"given, these should all be integers from the corresponding :mod:`socket` "
"module constants."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:488
#: ../Doc/library/asyncio-eventloop.rst:597
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*reuse_address* tells the kernel to reuse a local socket in ``TIME_WAIT`` "
"state, without waiting for its natural timeout to expire. If not specified "
"will automatically be set to ``True`` on Unix."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:493
2016-10-30 09:46:26 +00:00
msgid ""
"*reuse_port* tells the kernel to allow this endpoint to be bound to the same "
"port as other existing endpoints are bound to, so long as they all set this "
"flag when being created. This option is not supported on Windows and some "
2018-10-13 15:54:03 +00:00
"Unixes. If the :py:data:`~socket.SO_REUSEPORT` constant is not defined then "
2016-10-30 09:46:26 +00:00
"this capability is unsupported."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:499
2016-10-30 09:46:26 +00:00
msgid ""
"*allow_broadcast* tells the kernel to allow this endpoint to send messages "
"to the broadcast address."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:502
2016-10-30 09:46:26 +00:00
msgid ""
"*sock* can optionally be specified in order to use a preexisting, already "
"connected, :class:`socket.socket` object to be used by the transport. If "
"specified, *local_addr* and *remote_addr* should be omitted (must be :const:"
"`None`)."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:507
2016-10-30 09:46:26 +00:00
msgid ""
"See :ref:`UDP echo client protocol <asyncio-udp-echo-client-protocol>` and :"
"ref:`UDP echo server protocol <asyncio-udp-echo-server-protocol>` examples."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:510
2018-06-10 09:32:30 +00:00
msgid ""
"The *family*, *proto*, *flags*, *reuse_address*, *reuse_port, "
"*allow_broadcast*, and *sock* parameters were added."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:514
msgid "Added support for Windows."
2019-09-16 10:08:42 +00:00
msgstr "Prise en charge sur Windows."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:521
2018-10-13 15:54:03 +00:00
msgid "Create a Unix connection."
2018-10-14 22:47:12 +00:00
msgstr "Créer une connexion Unix"
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:523
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The socket family will be :py:data:`~socket.AF_UNIX`; socket type will be :"
"py:data:`~socket.SOCK_STREAM`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:528
2017-04-02 20:14:06 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*path* is the name of a Unix domain socket and is required, unless a *sock* "
"parameter is specified. Abstract Unix sockets, :class:`str`, :class:"
2018-06-28 13:32:56 +00:00
"`bytes`, and :class:`~pathlib.Path` paths are supported."
2017-04-02 20:14:06 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:533
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"See the documentation of the :meth:`loop.create_connection` method for "
"information about arguments to this method."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:537
#: ../Doc/library/asyncio-eventloop.rst:657
#: ../Doc/library/asyncio-eventloop.rst:1013
2018-11-29 15:13:39 +00:00
msgid ":ref:`Availability <availability>`: Unix."
msgstr ":ref:`Disponibilité <availability>` : Unix."
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:544
2018-06-28 13:32:56 +00:00
msgid "The *path* parameter can now be a :term:`path-like object`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:548
2018-10-13 15:54:03 +00:00
msgid "Creating network servers"
msgstr "Créer des serveurs"
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:558
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Create a TCP server (socket type :data:`~socket.SOCK_STREAM`) listening on "
"*port* of the *host* address."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:561
2018-10-13 15:54:03 +00:00
msgid "Returns a :class:`Server` object."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:563
2018-10-13 15:54:03 +00:00
msgid "Arguments:"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:568
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The *host* parameter can be set to several types which determine where the "
"server would be listening:"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:571
2018-10-13 15:54:03 +00:00
msgid ""
"If *host* is a string, the TCP server is bound to a single network interface "
"specified by *host*."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:574
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If *host* is a sequence of strings, the TCP server is bound to all network "
"interfaces specified by the sequence."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:577
2018-10-13 15:54:03 +00:00
msgid ""
"If *host* is an empty string or ``None``, all interfaces are assumed and a "
"list of multiple sockets will be returned (most likely one for IPv4 and "
"another one for IPv6)."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:581
2016-10-30 09:46:26 +00:00
msgid ""
"*family* can be set to either :data:`socket.AF_INET` or :data:`~socket."
2018-10-13 15:54:03 +00:00
"AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* "
"will be determined from host name (defaults to :data:`~socket.AF_UNSPEC`)."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:586
2016-10-30 09:46:26 +00:00
msgid "*flags* is a bitmask for :meth:`getaddrinfo`."
msgstr "*flags* est un masque de bits pour :meth:`getaddrinfo`."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:588
2016-10-30 09:46:26 +00:00
msgid ""
"*sock* can optionally be specified in order to use a preexisting socket "
2018-10-13 15:54:03 +00:00
"object. If specified, *host* and *port* must not be specified."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:591
2016-10-30 09:46:26 +00:00
msgid ""
"*backlog* is the maximum number of queued connections passed to :meth:"
"`~socket.socket.listen` (defaults to 100)."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:594
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*ssl* can be set to an :class:`~ssl.SSLContext` instance to enable TLS over "
"the accepted connections."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:602
2016-10-30 09:46:26 +00:00
msgid ""
"*reuse_port* tells the kernel to allow this endpoint to be bound to the same "
"port as other existing endpoints are bound to, so long as they all set this "
"flag when being created. This option is not supported on Windows."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:607
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*ssl_handshake_timeout* is (for a TLS server) the time in seconds to wait "
"for the TLS handshake to complete before aborting the connection. ``60.0`` "
2018-06-28 13:32:56 +00:00
"seconds if ``None`` (default)."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:611
2018-06-28 13:32:56 +00:00
msgid ""
"*start_serving* set to ``True`` (the default) causes the created server to "
"start accepting connections immediately. When set to ``False``, the user "
"should await on :meth:`Server.start_serving` or :meth:`Server.serve_forever` "
"to make the server to start accepting connections."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:619
2018-10-13 15:54:03 +00:00
msgid "Added *ssl_handshake_timeout* and *start_serving* parameters."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:632
2018-10-13 15:54:03 +00:00
msgid "The *host* parameter can be a sequence of strings."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:636
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The :func:`start_server` function is a higher-level alternative API that "
"returns a pair of :class:`StreamReader` and :class:`StreamWriter` that can "
"be used in an async/await code."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:645
2018-10-13 15:54:03 +00:00
msgid ""
"Similar to :meth:`loop.create_server` but works with the :py:data:`~socket."
"AF_UNIX` socket family."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:648
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*path* is the name of a Unix domain socket, and is required, unless a *sock* "
"argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, "
"and :class:`~pathlib.Path` paths are supported."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:653
2018-10-13 15:54:03 +00:00
msgid ""
"See the documentation of the :meth:`loop.create_server` method for "
"information about arguments to this method."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:660
2018-06-28 13:32:56 +00:00
msgid "The *ssl_handshake_timeout* and *start_serving* parameters."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:664
2018-06-28 13:32:56 +00:00
msgid "The *path* parameter can now be a :class:`~pathlib.Path` object."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:669
2018-10-13 15:54:03 +00:00
msgid "Wrap an already accepted connection into a transport/protocol pair."
2017-04-02 20:14:06 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:671
2017-04-02 20:14:06 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This method can be used by servers that accept connections outside of "
"asyncio but that use asyncio to handle them."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:674
#: ../Doc/library/asyncio-eventloop.rst:741
2018-10-13 15:54:03 +00:00
msgid "Parameters:"
msgstr "Paramètres :"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:679
2018-10-13 15:54:03 +00:00
msgid ""
"*sock* is a preexisting socket object returned from :meth:`socket.accept "
"<socket.socket.accept>`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:682
2018-10-13 15:54:03 +00:00
msgid ""
"*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the "
"accepted connections."
2017-04-02 20:14:06 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:685
2018-10-13 15:54:03 +00:00
msgid ""
"*ssl_handshake_timeout* is (for an SSL connection) the time in seconds to "
"wait for the SSL handshake to complete before aborting the connection. "
"``60.0`` seconds if ``None`` (default)."
2017-04-02 20:14:06 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:689
2018-10-13 15:54:03 +00:00
msgid "Returns a ``(transport, protocol)`` pair."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:699
2018-10-13 15:54:03 +00:00
msgid "Transferring files"
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:704
2017-04-02 20:14:06 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Send a *file* over a *transport*. Return the total number of bytes sent."
2017-04-02 20:14:06 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:707
2018-06-28 13:32:56 +00:00
msgid "The method uses high-performance :meth:`os.sendfile` if available."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:709
2018-06-28 13:32:56 +00:00
msgid "*file* must be a regular file object opened in binary mode."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:711
#: ../Doc/library/asyncio-eventloop.rst:901
2018-06-28 13:32:56 +00:00
msgid ""
"*offset* tells from where to start reading the file. If specified, *count* "
"is the total number of bytes to transmit as opposed to sending the file "
2018-10-13 15:54:03 +00:00
"until EOF is reached. File position is always updated, even when this method "
"raises an error, and :meth:`file.tell() <io.IOBase.tell>` can be used to "
"obtain the actual number of bytes sent."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:718
2018-06-28 13:32:56 +00:00
msgid ""
"*fallback* set to ``True`` makes asyncio to manually read and send the file "
2018-10-13 15:54:03 +00:00
"when the platform does not support the sendfile system call (e.g. Windows or "
"SSL socket on Unix)."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:722
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Raise :exc:`SendfileNotAvailableError` if the system does not support the "
2018-06-28 13:32:56 +00:00
"*sendfile* syscall and *fallback* is ``False``."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:729
2018-06-28 13:32:56 +00:00
msgid "TLS Upgrade"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:735
2018-10-13 15:54:03 +00:00
msgid "Upgrade an existing transport-based connection to TLS."
2018-07-05 09:39:28 +00:00
msgstr "Convertit une connexion existante en connexion TLS."
2018-06-28 13:32:56 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:737
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Return a new transport instance, that the *protocol* must start using "
2018-06-28 13:32:56 +00:00
"immediately after the *await*. The *transport* instance passed to the "
"*start_tls* method should never be used again."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:743
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*transport* and *protocol* instances that methods like :meth:`~loop."
"create_server` and :meth:`~loop.create_connection` return."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:747
2018-06-28 13:32:56 +00:00
msgid "*sslcontext*: a configured instance of :class:`~ssl.SSLContext`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:749
2018-06-28 13:32:56 +00:00
msgid ""
"*server_side* pass ``True`` when a server-side connection is being upgraded "
2018-10-13 15:54:03 +00:00
"(like the one created by :meth:`~loop.create_server`)."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:752
2018-06-28 13:32:56 +00:00
msgid ""
"*server_hostname*: sets or overrides the host name that the target server's "
"certificate will be matched against."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:763
2018-10-13 15:54:03 +00:00
msgid "Watching file descriptors"
2016-10-30 09:46:26 +00:00
msgstr "Surveiller des descripteurs de fichiers"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:767
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Start monitoring the *fd* file descriptor for read availability and invoke "
"*callback* with the specified arguments once *fd* is available for reading."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:773
2018-10-13 15:54:03 +00:00
msgid "Stop monitoring the *fd* file descriptor for read availability."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:777
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Start monitoring the *fd* file descriptor for write availability and invoke "
"*callback* with the specified arguments once *fd* is available for writing."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:781
#: ../Doc/library/asyncio-eventloop.rst:1000
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-"
2018-12-24 13:20:55 +00:00
"keywords>` to *callback*."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:786
2018-10-13 15:54:03 +00:00
msgid "Stop monitoring the *fd* file descriptor for write availability."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:788
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"See also :ref:`Platform Support <asyncio-platform-support>` section for some "
"limitations of these methods."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:793
2018-10-13 15:54:03 +00:00
msgid "Working with socket objects directly"
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:795
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"In general, protocol implementations that use transport-based APIs such as :"
"meth:`loop.create_connection` and :meth:`loop.create_server` are faster than "
"implementations that work with sockets directly. However, there are some use "
"cases when performance is not critical, and working with :class:`~socket."
"socket` objects directly is more convenient."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:804
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Receive up to *nbytes* from *sock*. Asynchronous version of :meth:`socket."
"recv() <socket.socket.recv>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:807
2018-10-13 15:54:03 +00:00
msgid "Return the received data as a bytes object."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#: ../Doc/library/asyncio-eventloop.rst:809
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:823
#: ../Doc/library/asyncio-eventloop.rst:838
#: ../Doc/library/asyncio-eventloop.rst:851
#: ../Doc/library/asyncio-eventloop.rst:877
#: ../Doc/library/asyncio-eventloop.rst:915
2018-10-13 15:54:03 +00:00
msgid "*sock* must be a non-blocking socket."
msgstr "Le connecteur *sock* ne doit pas être bloquant."
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:811
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Even though this method was always documented as a coroutine method, "
"releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this "
"is an ``async def`` method."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:818
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Receive data from *sock* into the *buf* buffer. Modeled after the blocking :"
"meth:`socket.recv_into() <socket.socket.recv_into>` method."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:821
2018-10-13 15:54:03 +00:00
msgid "Return the number of bytes written to the buffer."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:829
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Send *data* to the *sock* socket. Asynchronous version of :meth:`socket."
"sendall() <socket.socket.sendall>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:832
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This method continues to send to the socket until either all data in *data* "
"has been sent or an error occurs. ``None`` is returned on success. On "
"error, an exception is raised. Additionally, there is no way to determine "
"how much data, if any, was successfully processed by the receiving end of "
"the connection."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:840
2018-06-28 13:32:56 +00:00
msgid ""
"Even though the method was always documented as a coroutine method, before "
"Python 3.7 it returned an :class:`Future`. Since Python 3.7, this is an "
"``async def`` method."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:847
2018-10-13 15:54:03 +00:00
msgid "Connect *sock* to a remote socket at *address*."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:849
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Asynchronous version of :meth:`socket.connect() <socket.socket.connect>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:853
2016-10-30 09:46:26 +00:00
msgid ""
"``address`` no longer needs to be resolved. ``sock_connect`` will try to "
"check if the *address* is already resolved by calling :func:`socket."
2018-10-13 15:54:03 +00:00
"inet_pton`. If not, :meth:`loop.getaddrinfo` will be used to resolve the "
"*address*."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:862
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
":meth:`loop.create_connection` and :func:`asyncio.open_connection() "
"<open_connection>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:868
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Accept a connection. Modeled after the blocking :meth:`socket.accept() "
"<socket.socket.accept>` method."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:871
2016-10-30 09:46:26 +00:00
msgid ""
"The socket must be bound to an address and listening for connections. The "
"return value is a pair ``(conn, address)`` where *conn* is a *new* socket "
"object usable to send and receive data on the connection, and *address* is "
"the address bound to the socket on the other end of the connection."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:879
2018-10-13 15:54:03 +00:00
msgid ""
"Even though the method was always documented as a coroutine method, before "
"Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an "
"``async def`` method."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:886
2018-10-13 15:54:03 +00:00
msgid ":meth:`loop.create_server` and :func:`start_server`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:891
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Send a file using high-performance :mod:`os.sendfile` if possible. Return "
"the total number of bytes sent."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:894
2018-10-13 15:54:03 +00:00
msgid ""
"Asynchronous version of :meth:`socket.sendfile() <socket.socket.sendfile>`."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:896
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*sock* must be a non-blocking :const:`socket.SOCK_STREAM` :class:`~socket."
"socket`."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:899
2018-10-13 15:54:03 +00:00
msgid "*file* must be a regular file object open in binary mode."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:908
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"*fallback*, when set to ``True``, makes asyncio manually read and send the "
"file when the platform does not support the sendfile syscall (e.g. Windows "
"or SSL socket on Unix)."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:912
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Raise :exc:`SendfileNotAvailableError` if the system does not support "
"*sendfile* syscall and *fallback* is ``False``."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:921
2018-10-13 15:54:03 +00:00
msgid "DNS"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:926
2018-10-13 15:54:03 +00:00
msgid "Asynchronous version of :meth:`socket.getaddrinfo`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:930
2018-10-13 15:54:03 +00:00
msgid "Asynchronous version of :meth:`socket.getnameinfo`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:932
2018-06-28 13:32:56 +00:00
msgid ""
"Both *getaddrinfo* and *getnameinfo* methods were always documented to "
"return a coroutine, but prior to Python 3.7 they were, in fact, returning :"
"class:`asyncio.Future` objects. Starting with Python 3.7 both methods are "
"coroutines."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:940
2018-10-13 15:54:03 +00:00
msgid "Working with pipes"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:944
2018-10-13 15:54:03 +00:00
msgid "Register the read end of *pipe* in the event loop."
2018-10-18 08:16:44 +00:00
msgstr ""
"Branche l'extrémité en lecture du tube *pipe* à la boucle d'évènements."
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:949
2018-10-13 15:54:03 +00:00
msgid "*pipe* is a :term:`file-like object <file object>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:951
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Return pair ``(transport, protocol)``, where *transport* supports the :class:"
"`ReadTransport` interface and *protocol* is an object instantiated by the "
"*protocol_factory*."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:955
#: ../Doc/library/asyncio-eventloop.rst:971
2016-10-30 09:46:26 +00:00
msgid ""
"With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-"
"blocking mode."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:960
2018-10-13 15:54:03 +00:00
msgid "Register the write end of *pipe* in the event loop."
msgstr "Branche l'extrémité en écriture de *pipe* à la boucle d'évènements."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:965
2018-10-13 15:54:03 +00:00
msgid "*pipe* is :term:`file-like object <file object>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:967
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Return pair ``(transport, protocol)``, where *transport* supports :class:"
"`WriteTransport` interface and *protocol* is an object instantiated by the "
"*protocol_factory*."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:976
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
":class:`SelectorEventLoop` does not support the above methods on Windows. "
"Use :class:`ProactorEventLoop` instead for Windows."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:981
2018-10-13 15:54:03 +00:00
msgid ""
"The :meth:`loop.subprocess_exec` and :meth:`loop.subprocess_shell` methods."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:986
2018-10-13 15:54:03 +00:00
msgid "Unix signals"
msgstr "Signaux Unix"
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:990
2018-10-13 15:54:03 +00:00
msgid "Set *callback* as the handler for the *signum* signal."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:992
2016-10-30 09:46:26 +00:00
msgid ""
2018-12-24 13:20:55 +00:00
"The callback will be invoked by *loop*, along with other queued callbacks "
"and runnable coroutines of that event loop. Unlike signal handlers "
"registered using :func:`signal.signal`, a callback registered with this "
"function is allowed to interact with the event loop."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:997
2018-12-24 13:20:55 +00:00
msgid ""
2016-10-30 09:46:26 +00:00
"Raise :exc:`ValueError` if the signal number is invalid or uncatchable. "
"Raise :exc:`RuntimeError` if there is a problem setting up the handler."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1003
2018-12-24 13:20:55 +00:00
msgid ""
"Like :func:`signal.signal`, this function must be invoked in the main thread."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1008
2018-10-13 15:54:03 +00:00
msgid "Remove the handler for the *sig* signal."
2018-10-18 08:16:44 +00:00
msgstr "Supprime le gestionnaire du signal *sig*."
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1010
2018-10-13 15:54:03 +00:00
msgid ""
"Return ``True`` if the signal handler was removed, or ``False`` if no "
"handler was set for the given signal."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1017
2016-10-30 09:46:26 +00:00
msgid "The :mod:`signal` module."
msgstr "Le module :mod:`signal`."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1021
2018-10-13 15:54:03 +00:00
msgid "Executing code in thread or process pools"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1025
2018-10-13 15:54:03 +00:00
msgid "Arrange for *func* to be called in the specified executor."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1027
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The *executor* argument should be an :class:`concurrent.futures.Executor` "
2016-10-30 09:46:26 +00:00
"instance. The default executor is used if *executor* is ``None``."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1071
2018-10-13 15:54:03 +00:00
msgid "This method returns a :class:`asyncio.Future` object."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1073
2018-12-24 13:20:55 +00:00
msgid ""
"Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-"
"keywords>` to *func*."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1076
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
":meth:`loop.run_in_executor` no longer configures the ``max_workers`` of the "
"thread pool executor it creates, instead leaving it up to the thread pool "
"executor (:class:`~concurrent.futures.ThreadPoolExecutor`) to set the "
"default."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1085
2018-10-13 15:54:03 +00:00
msgid ""
"Set *executor* as the default executor used by :meth:`run_in_executor`. "
"*executor* should be an instance of :class:`~concurrent.futures."
"ThreadPoolExecutor`."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1089
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Using an executor that is not an instance of :class:`~concurrent.futures."
"ThreadPoolExecutor` is deprecated and will trigger an error in Python 3.9."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1094
2018-10-13 15:54:03 +00:00
msgid ""
"*executor* must be an instance of :class:`concurrent.futures."
"ThreadPoolExecutor`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1099
2016-10-30 09:46:26 +00:00
msgid "Error Handling API"
msgstr "API de gestion d'erreur"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1101
2016-10-30 09:46:26 +00:00
msgid "Allows customizing how exceptions are handled in the event loop."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1105
2016-10-30 09:46:26 +00:00
msgid "Set *handler* as the new event loop exception handler."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1107
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"If *handler* is ``None``, the default exception handler will be set. "
"Otherwise, *handler* must be a callable with the signature matching ``(loop, "
"context)``, where ``loop`` is a reference to the active event loop, and "
"``context`` is a ``dict`` object containing the details of the exception "
"(see :meth:`call_exception_handler` documentation for details about context)."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1117
2018-10-13 15:54:03 +00:00
msgid ""
"Return the current exception handler, or ``None`` if no custom exception "
"handler was set."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1124
2016-10-30 09:46:26 +00:00
msgid "Default exception handler."
msgstr "Gestionnaire d'exception par défaut."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1126
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This is called when an exception occurs and no exception handler is set. "
"This can be called by a custom exception handler that wants to defer to the "
"default handler behavior."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1130
2016-10-30 09:46:26 +00:00
msgid ""
"*context* parameter has the same meaning as in :meth:"
"`call_exception_handler`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1135
2016-10-30 09:46:26 +00:00
msgid "Call the current event loop exception handler."
msgstr ""
"Appelle le gestionnaire d'exception de la boucle d'évènements actuelle."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1137
2016-10-30 09:46:26 +00:00
msgid ""
"*context* is a ``dict`` object containing the following keys (new keys may "
2018-10-13 15:54:03 +00:00
"be introduced in future Python versions):"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1140
2016-10-30 09:46:26 +00:00
msgid "'message': Error message;"
msgstr "``message`` : Message d'erreur ;"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1141
2016-10-30 09:46:26 +00:00
msgid "'exception' (optional): Exception object;"
msgstr "``exception`` (optionnel): Un objet exception ;"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1142
2016-10-30 09:46:26 +00:00
msgid "'future' (optional): :class:`asyncio.Future` instance;"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1143
2016-10-30 09:46:26 +00:00
msgid "'handle' (optional): :class:`asyncio.Handle` instance;"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1144
2016-10-30 09:46:26 +00:00
msgid "'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance;"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1145
2016-10-30 09:46:26 +00:00
msgid "'transport' (optional): :ref:`Transport <asyncio-transport>` instance;"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1146
2016-10-30 09:46:26 +00:00
msgid "'socket' (optional): :class:`socket.socket` instance."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1150
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"This method should not be overloaded in subclassed event loops. For custom "
"exception handling, use the :meth:`set_exception_handler()` method."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1155
2018-10-13 15:54:03 +00:00
msgid "Enabling debug mode"
msgstr "Active le mode débogage"
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1159
2016-10-30 09:46:26 +00:00
msgid "Get the debug mode (:class:`bool`) of the event loop."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1161
2016-10-30 09:46:26 +00:00
msgid ""
"The default value is ``True`` if the environment variable :envvar:"
"`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False`` otherwise."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1167
2016-10-30 09:46:26 +00:00
msgid "Set the debug mode of the event loop."
msgstr "Active le mode débogage pour la boucle d'évènements."
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1171
2018-10-13 15:54:03 +00:00
msgid ""
"The new ``-X dev`` command line option can now also be used to enable the "
"debug mode."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1176
2016-10-30 09:46:26 +00:00
msgid "The :ref:`debug mode of asyncio <asyncio-debug-mode>`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1180
2018-10-13 15:54:03 +00:00
msgid "Running Subprocesses"
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1182
2018-10-13 15:54:03 +00:00
msgid ""
"Methods described in this subsections are low-level. In regular async/await "
"code consider using the high-level :func:`asyncio.create_subprocess_shell` "
"and :func:`asyncio.create_subprocess_exec` convenience functions instead."
msgstr ""
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1189
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The default asyncio event loop on **Windows** does not support subprocesses. "
"See :ref:`Subprocess Support on Windows <asyncio-windows-subprocess>` for "
"details."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1197
2018-10-13 15:54:03 +00:00
msgid ""
"Create a subprocess from one or more string arguments specified by *args*."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1200
2018-10-13 15:54:03 +00:00
msgid "*args* must be a list of strings represented by:"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1202
2018-10-13 15:54:03 +00:00
msgid ":class:`str`;"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1203
2018-10-13 15:54:03 +00:00
msgid ""
"or :class:`bytes`, encoded to the :ref:`filesystem encoding <filesystem-"
"encoding>`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1206
2018-10-13 15:54:03 +00:00
msgid ""
"The first string specifies the program executable, and the remaining strings "
"specify the arguments. Together, string arguments form the ``argv`` of the "
"program."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1210
2018-10-13 15:54:03 +00:00
msgid ""
"This is similar to the standard library :class:`subprocess.Popen` class "
"called with ``shell=False`` and the list of strings passed as the first "
"argument; however, where :class:`~subprocess.Popen` takes a single argument "
"which is list of strings, *subprocess_exec* takes multiple string arguments."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1216
2018-10-13 15:54:03 +00:00
msgid ""
"The *protocol_factory* must be a callable returning a subclass of the :class:"
"`asyncio.SubprocessProtocol` class."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1219
2018-10-13 15:54:03 +00:00
msgid "Other parameters:"
msgstr "Autres paramètres :"
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1221
msgid "*stdin* can be any of these:"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1223
2018-10-13 15:54:03 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"a file-like object representing a pipe to be connected to the subprocess's "
"standard input stream using :meth:`~loop.connect_write_pipe`"
2018-10-13 15:54:03 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1226
#: ../Doc/library/asyncio-eventloop.rst:1238
#: ../Doc/library/asyncio-eventloop.rst:1250
2018-10-13 15:54:03 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"the :const:`subprocess.PIPE` constant (default) which will create a new pipe "
"and connect it,"
2018-10-13 15:54:03 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1228
#: ../Doc/library/asyncio-eventloop.rst:1240
#: ../Doc/library/asyncio-eventloop.rst:1252
2018-10-13 15:54:03 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"the value ``None`` which will make the subprocess inherit the file "
"descriptor from this process"
2018-10-13 15:54:03 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1230
#: ../Doc/library/asyncio-eventloop.rst:1242
#: ../Doc/library/asyncio-eventloop.rst:1254
2018-10-13 15:54:03 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"the :const:`subprocess.DEVNULL` constant which indicates that the special :"
"data:`os.devnull` file will be used"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1233
msgid "*stdout* can be any of these:"
2018-10-13 15:54:03 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1235
msgid ""
"a file-like object representing a pipe to be connected to the subprocess's "
"standard output stream using :meth:`~loop.connect_write_pipe`"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1245
msgid "*stderr* can be any of these:"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1247
msgid ""
"a file-like object representing a pipe to be connected to the subprocess's "
"standard error stream using :meth:`~loop.connect_write_pipe`"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1256
msgid ""
"the :const:`subprocess.STDOUT` constant which will connect the standard "
"error stream to the process' standard output stream"
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1259
2018-10-13 15:54:03 +00:00
msgid ""
"All other keyword arguments are passed to :class:`subprocess.Popen` without "
2019-09-04 09:35:23 +00:00
"interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, "
"*encoding* and *errors*, which should not be specified at all."
2018-10-13 15:54:03 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1264
msgid ""
"The ``asyncio`` subprocess API does not support decoding the streams as "
"text. :func:`bytes.decode` can be used to convert the bytes returned from "
"the stream to text."
msgstr ""
#: ../Doc/library/asyncio-eventloop.rst:1268
2018-10-13 15:54:03 +00:00
msgid ""
"See the constructor of the :class:`subprocess.Popen` class for documentation "
"on other arguments."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1271
2018-10-13 15:54:03 +00:00
msgid ""
"Returns a pair of ``(transport, protocol)``, where *transport* conforms to "
"the :class:`asyncio.SubprocessTransport` base class and *protocol* is an "
"object instantiated by the *protocol_factory*."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1279
2018-10-13 15:54:03 +00:00
msgid ""
"Create a subprocess from *cmd*, which can be a :class:`str` or a :class:"
"`bytes` string encoded to the :ref:`filesystem encoding <filesystem-"
"encoding>`, using the platform's \"shell\" syntax."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1284
2018-10-13 15:54:03 +00:00
msgid ""
"This is similar to the standard library :class:`subprocess.Popen` class "
"called with ``shell=True``."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1287
2018-10-13 15:54:03 +00:00
msgid ""
"The *protocol_factory* must be a callable returning a subclass of the :class:"
"`SubprocessProtocol` class."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1290
2018-10-13 15:54:03 +00:00
msgid ""
"See :meth:`~loop.subprocess_exec` for more details about the remaining "
"arguments."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1293
2018-10-13 15:54:03 +00:00
msgid ""
"Returns a pair of ``(transport, protocol)``, where *transport* conforms to "
"the :class:`SubprocessTransport` base class and *protocol* is an object "
"instantiated by the *protocol_factory*."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1298
2018-10-13 15:54:03 +00:00
msgid ""
"It is the application's responsibility to ensure that all whitespace and "
"special characters are quoted appropriately to avoid `shell injection "
"<https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ "
"vulnerabilities. The :func:`shlex.quote` function can be used to properly "
"escape whitespace and special characters in strings that are going to be "
"used to construct shell commands."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1307
2018-10-13 15:54:03 +00:00
msgid "Callback Handles"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1311
2018-10-13 15:54:03 +00:00
msgid ""
"A callback wrapper object returned by :meth:`loop.call_soon`, :meth:`loop."
"call_soon_threadsafe`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1316
2018-10-13 15:54:03 +00:00
msgid ""
"Cancel the callback. If the callback has already been canceled or executed, "
"this method has no effect."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1321
2018-10-13 15:54:03 +00:00
msgid "Return ``True`` if the callback was cancelled."
msgstr "Renvoie ``True`` si la fonction de rappel à été annulé."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1327
2018-10-13 15:54:03 +00:00
msgid ""
"A callback wrapper object returned by :meth:`loop.call_later`, and :meth:"
"`loop.call_at`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1330
2018-10-13 15:54:03 +00:00
msgid "This class is a subclass of :class:`Handle`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1334
2018-10-13 15:54:03 +00:00
msgid "Return a scheduled callback time as :class:`float` seconds."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1336
2018-10-13 15:54:03 +00:00
msgid ""
"The time is an absolute timestamp, using the same time reference as :meth:"
"`loop.time`."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1343
2018-10-13 15:54:03 +00:00
msgid "Server Objects"
msgstr "Objets Serveur"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1345
2018-10-13 15:54:03 +00:00
msgid ""
"Server objects are created by :meth:`loop.create_server`, :meth:`loop."
"create_unix_server`, :func:`start_server`, and :func:`start_unix_server` "
"functions."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1349
2018-10-13 15:54:03 +00:00
msgid "Do not instantiate the class directly."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1353
2016-10-30 09:46:26 +00:00
msgid ""
2018-06-28 13:32:56 +00:00
"*Server* objects are asynchronous context managers. When used in an ``async "
"with`` statement, it's guaranteed that the Server object is closed and not "
"accepting new connections when the ``async with`` statement is completed::"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1366
2018-06-28 13:32:56 +00:00
msgid "Server object is an asynchronous context manager since Python 3.7."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1371
2016-10-30 09:46:26 +00:00
msgid ""
"Stop serving: close listening sockets and set the :attr:`sockets` attribute "
"to ``None``."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1374
2016-10-30 09:46:26 +00:00
msgid ""
"The sockets that represent existing incoming client connections are left "
"open."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1377
2016-10-30 09:46:26 +00:00
msgid ""
"The server is closed asynchronously, use the :meth:`wait_closed` coroutine "
"to wait until the server is closed."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1382
2018-10-13 15:54:03 +00:00
msgid "Return the event loop associated with the server object."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1388
2018-06-28 13:32:56 +00:00
msgid "Start accepting connections."
2018-07-21 09:33:24 +00:00
msgstr "Commence à accepter les connexions."
2018-06-28 13:32:56 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1390
2018-06-28 13:32:56 +00:00
msgid ""
"This method is idempotent, so it can be called when the server is already "
"being serving."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1393
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"The *start_serving* keyword-only parameter to :meth:`loop.create_server` "
"and :meth:`asyncio.start_server` allows creating a Server object that is not "
"accepting connections initially. In this case ``Server.start_serving()``, "
"or :meth:`Server.serve_forever` can be used to make the Server start "
"accepting connections."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1404
2018-06-28 13:32:56 +00:00
msgid ""
"Start accepting connections until the coroutine is cancelled. Cancellation "
"of ``serve_forever`` task causes the server to be closed."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1408
2018-06-28 13:32:56 +00:00
msgid ""
"This method can be called if the server is already accepting connections. "
"Only one ``serve_forever`` task can exist per one *Server* object."
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1430
2018-06-28 13:32:56 +00:00
msgid "Return ``True`` if the server is accepting new connections."
2018-07-05 09:39:28 +00:00
msgstr "Donne ``True`` si le serveur accepte de nouvelles connexions."
2018-06-28 13:32:56 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1436
2016-10-30 09:46:26 +00:00
msgid "Wait until the :meth:`close` method completes."
msgstr "Attends que la méthode :meth:`close` se termine."
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1440
msgid "List of :class:`socket.socket` objects the server is listening on."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1442
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Prior to Python 3.7 ``Server.sockets`` used to return an internal list of "
"server sockets directly. In 3.7 a copy of that list is returned."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1451
2018-10-13 15:54:03 +00:00
msgid "Event Loop Implementations"
msgstr "Implémentations de boucle d'évènements"
2016-10-30 09:46:26 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1453
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"asyncio ships with two different event loop implementations: :class:"
"`SelectorEventLoop` and :class:`ProactorEventLoop`."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1456
2016-10-30 09:46:26 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"By default asyncio is configured to use :class:`SelectorEventLoop` on Unix "
"and :class:`ProactorEventLoop` on Windows."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1462
2018-10-13 15:54:03 +00:00
msgid "An event loop based on the :mod:`selectors` module."
msgstr ""
2018-06-28 13:32:56 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1464
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Uses the most efficient *selector* available for the given platform. It is "
"also possible to manually configure the exact selector implementation to be "
"used::"
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1476
2018-11-29 15:13:39 +00:00
msgid ":ref:`Availability <availability>`: Unix, Windows."
msgstr ":ref:`Disponibilité <availability>` : Unix, Windows."
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1481
2018-10-13 15:54:03 +00:00
msgid "An event loop for Windows that uses \"I/O Completion Ports\" (IOCP)."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1484
2018-11-29 15:13:39 +00:00
msgid ":ref:`Availability <availability>`: Windows."
msgstr ":ref:`Disponibilité <availability>` : Windows."
2018-10-13 15:54:03 +00:00
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1487
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"`MSDN documentation on I/O Completion Ports <https://docs.microsoft.com/en-"
"ca/windows/desktop/FileIO/i-o-completion-ports>`_."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1493
2018-10-13 15:54:03 +00:00
msgid "Abstract base class for asyncio-compliant event loops."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1495
2018-10-13 15:54:03 +00:00
msgid ""
"The :ref:`Event Loop Methods <asyncio-event-loop>` section lists all methods "
"that an alternative implementation of ``AbstractEventLoop`` should have "
"defined."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1501
2018-10-13 15:54:03 +00:00
msgid "Examples"
msgstr "Exemples"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1503
2018-06-28 13:32:56 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Note that all examples in this section **purposefully** show how to use the "
"low-level event loop APIs, such as :meth:`loop.run_forever` and :meth:`loop."
"call_soon`. Modern asyncio applications rarely need to be written this way; "
"consider using the high-level functions like :func:`asyncio.run`."
2018-06-28 13:32:56 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1513
2016-10-30 09:46:26 +00:00
msgid "Hello World with call_soon()"
msgstr "\"Hello World\" avec ``call_soon()``"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1515
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"An example using the :meth:`loop.call_soon` method to schedule a callback. "
"The callback displays ``\"Hello World\"`` and then stops the event loop::"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1539
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"A similar :ref:`Hello World <coroutine>` example created with a coroutine "
"and the :func:`run` function."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1546
2016-10-30 09:46:26 +00:00
msgid "Display the current date with call_later()"
msgstr "Afficher la date actuelle avec ``call_later()``"
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1548
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"An example of a callback displaying the current date every second. The "
"callback uses the :meth:`loop.call_later` method to reschedule itself after "
"5 seconds, and then stops the event loop::"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1576
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"A similar :ref:`current date <asyncio_example_sleep>` example created with a "
"coroutine and the :func:`run` function."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1583
2016-10-30 09:46:26 +00:00
msgid "Watch a file descriptor for read events"
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1585
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Wait until a file descriptor received some data using the :meth:`loop."
"add_reader` method and then close the event loop::"
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1623
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"A similar :ref:`example <asyncio_example_create_connection>` using "
"transports, protocols, and the :meth:`loop.create_connection` method."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1627
2016-10-30 09:46:26 +00:00
msgid ""
2018-10-13 15:54:03 +00:00
"Another similar :ref:`example <asyncio_example_create_connection-streams>` "
2019-10-09 16:10:12 +00:00
"using the high-level :func:`asyncio.open_connection` function and streams."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1635
2016-10-30 09:46:26 +00:00
msgid "Set signal handlers for SIGINT and SIGTERM"
msgstr "Définit les gestionnaires de signaux pour *SIGINT* et *SIGTERM*"
2019-10-09 16:10:12 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1637
2018-10-13 15:54:03 +00:00
msgid "(This ``signals`` example only works on Unix.)"
msgstr "(Cet exemple ne fonctionne que sur Unix.)"
2019-10-09 16:10:12 +00:00
#: ../Doc/library/asyncio-eventloop.rst:1639
2016-10-30 09:46:26 +00:00
msgid ""
"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using "
2018-10-13 15:54:03 +00:00
"the :meth:`loop.add_signal_handler` method::"
2016-10-30 09:46:26 +00:00
msgstr ""
2018-10-13 15:54:03 +00:00
#~ msgid "Returns running status of event loop."
#~ msgstr "Donne le status d'exécution de la boucle d'évènements."
#~ msgid "Calls"
#~ msgstr "Appels"
#~ msgid "Like :meth:`call_soon`, but thread safe."
#~ msgstr "Comme :meth:`call_soon` mais *thread safe*."
#~ msgid "Delayed calls"
#~ msgstr "Appels différés"
#~ msgid "Tasks"
#~ msgstr "Tâches"
#~ msgid "Options that change how the connection is created:"
#~ msgstr "Options modifiant la création de la connexion :"
#~ msgid "Options changing how the connection is created:"
#~ msgstr "Options modifiant la création de la connexion :"
#~ msgid "Creating listening connections"
#~ msgstr "Attendre des connections"
#~ msgid "Low-level socket operations"
#~ msgstr "Opérations bas niveau sur les *socket*"
#~ msgid "Resolve host name"
#~ msgstr "Résout le nom d'hôte"
#~ msgid "Add a handler for a signal."
#~ msgstr "Ajouter un gestionnaire (*handler*) pour un signal."
#~ msgid "Executor"
#~ msgstr "Exécuteur"
#~ msgid "Server listening on sockets."
#~ msgstr "Serveur écoutant sur des *sockets*."
#~ msgid "Handle"
#~ msgstr "Handle"
2018-06-28 13:32:56 +00:00
#~ msgid "This method is a :ref:`coroutine <coroutine>`."
#~ msgstr "Cette méthode est une :ref:`coroutine <coroutine>`."