2023-02-07 22:52:58 +00:00
|
|
|
|
# Copyright (C) 2001-2018, Python Software Foundation
|
|
|
|
|
# For licence information, see README file.
|
2022-05-22 21:15:02 +00:00
|
|
|
|
#
|
|
|
|
|
msgid ""
|
|
|
|
|
msgstr ""
|
2023-02-07 22:52:58 +00:00
|
|
|
|
"Project-Id-Version: Python 3\n"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
"Report-Msgid-Bugs-To: \n"
|
2023-01-15 21:42:07 +00:00
|
|
|
|
"POT-Creation-Date: 2023-01-15 22:33+0100\n"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"PO-Revision-Date: 2023-06-17 19:00+0200\n"
|
|
|
|
|
"Last-Translator: Christophe Nanteuil <christophe.nanteuil@gmail.com>\n"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
|
|
|
|
"Language: fr\n"
|
|
|
|
|
"MIME-Version: 1.0\n"
|
|
|
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
|
|
|
"Content-Transfer-Encoding: 8bit\n"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"X-Generator: Poedit 3.2.2\n"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:6
|
|
|
|
|
msgid "Extending"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Extension"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"La direction principale pour l'extension d':mod:`asyncio` est l'écriture de "
|
|
|
|
|
"classes *event loop* personnalisées. *Asyncio* a des assistants qui peuvent "
|
|
|
|
|
"être utilisés pour simplifier cette tâche."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-07-05 06:58:09 +00:00
|
|
|
|
# suit un :
|
2022-05-22 21:15:02 +00:00
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"la réutilisation du code asynchrone existant doit se faire avec prudence, "
|
|
|
|
|
"une nouvelle version de Python est libre de rompre la compatibilité "
|
|
|
|
|
"descendante dans la partie *interne* de l'API."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:19
|
|
|
|
|
msgid "Writing a Custom Event Loop"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Écriture d'une boucle d'événements personnalisée"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:21
|
|
|
|
|
msgid ""
|
|
|
|
|
":class:`asyncio.AbstractEventLoop` declares very many methods. Implementing "
|
|
|
|
|
"all them from scratch is a tedious job."
|
|
|
|
|
msgstr ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
":class:`asyncio.AbstractEventLoop` déclare de très nombreuses méthodes. Les "
|
|
|
|
|
"mettre en œuvre à partir de zéro est un travail fastidieux."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:24
|
|
|
|
|
msgid ""
|
|
|
|
|
"A loop can get many common methods implementation for free by inheriting "
|
|
|
|
|
"from :class:`asyncio.BaseEventLoop`."
|
|
|
|
|
msgstr ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Une boucle d'événements peut obtenir gratuitement l'implémentation de "
|
|
|
|
|
"nombreuses méthodes courantes en héritant de :class:`asyncio.BaseEventLoop`."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Le successeur doit, pour ce qui le concerne, implémenter un ensemble de "
|
|
|
|
|
"méthodes *privées* déclarées mais non implémentées dans :class:`asyncio."
|
|
|
|
|
"BaseEventLoop`."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Par exemple, ``loop.create_connection()`` vérifie les arguments, résout les "
|
|
|
|
|
"adresses DNS et appelle ``loop._make_socket_transport()`` qui doit être "
|
|
|
|
|
"implémentée par la classe héritée. La méthode ``_make_socket_transport()`` "
|
|
|
|
|
"n'est pas documentée et est considérée comme une API *interne*."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:38
|
|
|
|
|
msgid "Future and Task private constructors"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Constructeurs privés *Future* et *Task*"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
":class:`asyncio.Future` et :class:`asyncio.Task` ne doivent jamais être "
|
|
|
|
|
"créées directement, veuillez utiliser les correspondances :meth:`loop."
|
|
|
|
|
"create_future` et :meth:`loop.create_task`, ou les fabriques :func:`asyncio."
|
|
|
|
|
"create_task` à la place."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Cependant, les *boucles d'événements* tierces peuvent *réutiliser* les "
|
|
|
|
|
"implémentations de *Future* et de *Task* intégrées dans le but d'obtenir "
|
|
|
|
|
"gratuitement un code complexe et hautement optimisé."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:47
|
|
|
|
|
msgid "For this purpose the following, *private* constructors are listed:"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "À cette fin, les constructeurs *privés* suivants sont répertoriés :"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:51
|
|
|
|
|
msgid "Create a built-in future instance."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Crée une instance de la *future* native."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:53
|
|
|
|
|
msgid "*loop* is an optional event loop instance."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "*loop* est une instance de boucle d'événements facultative."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: library/asyncio-extending.rst:57
|
|
|
|
|
msgid "Create a built-in task instance."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Crée une instance de la *Task* native."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
|
|
|
|
#: 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 ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"*loop* est une instance de boucle d'événements facultative. Le reste des "
|
|
|
|
|
"arguments est décrit dans la description de :meth:`loop.create_task`."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-07-05 06:58:09 +00:00
|
|
|
|
# suit un :
|
2022-05-22 21:15:02 +00:00
|
|
|
|
#: library/asyncio-extending.rst:64
|
|
|
|
|
msgid "*context* argument is added."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "l'argument *contexte* a été ajouté."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:69
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "Task lifetime support"
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Prise en charge de la durée de vie des tâches"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:71
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"A third party task implementation should call the following functions to "
|
|
|
|
|
"keep a task visible by :func:`asyncio.get_tasks` and :func:`asyncio."
|
|
|
|
|
"current_task`:"
|
|
|
|
|
msgstr ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Une implémentation tierce de tâche doit appeler les fonctions suivantes pour "
|
|
|
|
|
"garder une tâche visible par :func:`asyncio.get_tasks` et :func:`asyncio."
|
|
|
|
|
"current_task` :"
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:76
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "Register a new *task* as managed by *asyncio*."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Enregistre une nouvelle *tâche* comme gérée par *asyncio*."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:78
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "Call the function from a task constructor."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Appelez la fonction à partir d'un constructeur de tâche."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:82
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "Unregister a *task* from *asyncio* internal structures."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Désinscrit une *tâche* des structures internes *asyncio*."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:84
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "The function should be called when a task is about to finish."
|
|
|
|
|
msgstr ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"La fonction doit être appelée lorsqu'une tâche est sur le point de se "
|
|
|
|
|
"terminer."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:88
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "Switch the current task to the *task* argument."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Bascule la tâche en cours vers l'argument *task*."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:90
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Call the function just before executing a portion of embedded *coroutine* (:"
|
|
|
|
|
"meth:`coroutine.send` or :meth:`coroutine.throw`)."
|
|
|
|
|
msgstr ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Appelez la fonction juste avant d'exécuter une partie de la *coroutine* "
|
|
|
|
|
"intégrée (:meth:`coroutine.send` ou :meth:`coroutine.throw`)."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:95
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid "Switch the current task back from *task* to ``None``."
|
2023-07-05 06:58:09 +00:00
|
|
|
|
msgstr "Rebascule la tâche en cours de *task* à ``None``."
|
2022-05-22 21:15:02 +00:00
|
|
|
|
|
2023-01-15 21:42:07 +00:00
|
|
|
|
#: library/asyncio-extending.rst:97
|
2022-05-22 21:15:02 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Call the function just after :meth:`coroutine.send` or :meth:`coroutine."
|
|
|
|
|
"throw` execution."
|
|
|
|
|
msgstr ""
|
2023-07-05 06:58:09 +00:00
|
|
|
|
"Appelez la fonction juste après l'exécution de :meth:`coroutine.send` ou :"
|
|
|
|
|
"meth:`coroutine.throw`."
|