Traduction des premières lignes de asyncio-policy.po (#619)

This commit is contained in:
fsetton 2019-11-16 15:36:01 +01:00 committed by Mathieu Dupuy
parent 9fef0f6969
commit ef3cbeb573

View File

@ -6,17 +6,18 @@ msgstr ""
"Project-Id-Version: Python 3.7\n" "Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-01-03 16:57+0100\n" "POT-Creation-Date: 2019-01-03 16:57+0100\n"
"PO-Revision-Date: 2018-11-29 18:26+0100\n" "PO-Revision-Date: 2019-04-11 22:41+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" "Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n" "Language: fr\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Last-Translator: \n"
"X-Generator: Poedit 2.2.1\n"
#: ../Doc/library/asyncio-policy.rst:8 #: ../Doc/library/asyncio-policy.rst:8
msgid "Policies" msgid "Policies"
msgstr "" msgstr "Stratégies"
#: ../Doc/library/asyncio-policy.rst:10 #: ../Doc/library/asyncio-policy.rst:10
msgid "" msgid ""
@ -24,12 +25,19 @@ msgid ""
"management of the event loop. Each event loop has a default policy, which " "management of the event loop. Each event loop has a default policy, which "
"can be changed and customized using the policy API." "can be changed and customized using the policy API."
msgstr "" msgstr ""
"Une stratégie de boucle d'événements est un objet global, pour chaque "
"processus, qui contrôle la gestion de la boucle d'événement. Chaque boucle "
"d'événement a une stratégie par défaut, qui peut être modifiée et "
"personnalisée à l'aide de l'API de la stratégie."
#: ../Doc/library/asyncio-policy.rst:14 #: ../Doc/library/asyncio-policy.rst:14
msgid "" msgid ""
"A policy defines the notion of *context* and manages a separate event loop " "A policy defines the notion of *context* and manages a separate event loop "
"per context. The default policy defines *context* to be the current thread." "per context. The default policy defines *context* to be the current thread."
msgstr "" msgstr ""
"Une stratégie définit la notion de *contexte* et gère une boucle d'événement "
"distincte par contexte. La stratégie par défaut définit le *contexte* comme "
"étant le fil d'exécution actuel."
#: ../Doc/library/asyncio-policy.rst:18 #: ../Doc/library/asyncio-policy.rst:18
msgid "" msgid ""
@ -37,46 +45,57 @@ msgid ""
"`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` " "`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` "
"functions can be customized." "functions can be customized."
msgstr "" msgstr ""
"En utilisant une stratégie de boucle d'événement personnalisée, le "
"comportement des fonctions :func:`get_event_loop`, :func:`set_event_loop` "
"et :func:`new_event_loop` peut être personnalisé."
#: ../Doc/library/asyncio-policy.rst:22 #: ../Doc/library/asyncio-policy.rst:22
msgid "" msgid ""
"Policy objects should implement the APIs defined in the :class:" "Policy objects should implement the APIs defined in the :class:"
"`AbstractEventLoopPolicy` abstract base class." "`AbstractEventLoopPolicy` abstract base class."
msgstr "" msgstr ""
"Les objets de stratégie doivent implémenter les API définies dans la classe "
"de base abstraite :class:`AbstractEventLoopPolicy`."
#: ../Doc/library/asyncio-policy.rst:27 #: ../Doc/library/asyncio-policy.rst:27
msgid "Getting and Setting the Policy" msgid "Getting and Setting the Policy"
msgstr "" msgstr "Obtenir et définir la stratégie"
#: ../Doc/library/asyncio-policy.rst:29 #: ../Doc/library/asyncio-policy.rst:29
msgid "" msgid ""
"The following functions can be used to get and set the policy for the " "The following functions can be used to get and set the policy for the "
"current process:" "current process:"
msgstr "" msgstr ""
"Les fonctions suivantes peuvent être utilisées pour obtenir et définir la "
"stratégie du processus en cours :"
#: ../Doc/library/asyncio-policy.rst:34 #: ../Doc/library/asyncio-policy.rst:34
msgid "Return the current process-wide policy." msgid "Return the current process-wide policy."
msgstr "" msgstr "Renvoie la stratégie actuelle à l'échelle du processus."
#: ../Doc/library/asyncio-policy.rst:38 #: ../Doc/library/asyncio-policy.rst:38
msgid "Set the current process-wide policy to *policy*." msgid "Set the current process-wide policy to *policy*."
msgstr "" msgstr ""
"Définit la stratégie actuelle sur l'ensemble du processus sur *policy*."
#: ../Doc/library/asyncio-policy.rst:40 #: ../Doc/library/asyncio-policy.rst:40
msgid "If *policy* is set to ``None``, the default policy is restored." msgid "If *policy* is set to ``None``, the default policy is restored."
msgstr "" msgstr ""
"Si *policy* est définie sur ``None``, la stratégie par défaut est restaurée."
#: ../Doc/library/asyncio-policy.rst:44 #: ../Doc/library/asyncio-policy.rst:44
msgid "Policy Objects" msgid "Policy Objects"
msgstr "" msgstr "Sujets de stratégie"
#: ../Doc/library/asyncio-policy.rst:46 #: ../Doc/library/asyncio-policy.rst:46
msgid "The abstract event loop policy base class is defined as follows:" msgid "The abstract event loop policy base class is defined as follows:"
msgstr "" msgstr ""
"La classe de base abstraite de la stratégie de boucle d'événements est "
"définie comme suit:"
#: ../Doc/library/asyncio-policy.rst:50 #: ../Doc/library/asyncio-policy.rst:50
msgid "An abstract base class for asyncio policies." msgid "An abstract base class for asyncio policies."
msgstr "" msgstr "Une classe de base abstraite pour les stratégies *asyncio*."
#: ../Doc/library/asyncio-policy.rst:54 #: ../Doc/library/asyncio-policy.rst:54
msgid "Get the event loop for the current context." msgid "Get the event loop for the current context."
@ -87,58 +106,68 @@ msgid ""
"Return an event loop object implementing the :class:`AbstractEventLoop` " "Return an event loop object implementing the :class:`AbstractEventLoop` "
"interface." "interface."
msgstr "" msgstr ""
"Renvoie un objet de boucle d'événements en implémentant l'interface :class:"
"`AbstractEventLoop`."
#: ../Doc/library/asyncio-policy.rst:59 ../Doc/library/asyncio-policy.rst:71 #: ../Doc/library/asyncio-policy.rst:59 ../Doc/library/asyncio-policy.rst:71
msgid "This method should never return ``None``." msgid "This method should never return ``None``."
msgstr "" msgstr "Cette méthode ne devrait jamais renvoyer `` None``."
#: ../Doc/library/asyncio-policy.rst:65 #: ../Doc/library/asyncio-policy.rst:65
msgid "Set the event loop for the current context to *loop*." msgid "Set the event loop for the current context to *loop*."
msgstr "" msgstr "Définit la boucle d'événements du contexte actuel sur *loop*."
#: ../Doc/library/asyncio-policy.rst:69 #: ../Doc/library/asyncio-policy.rst:69
msgid "Create and return a new event loop object." msgid "Create and return a new event loop object."
msgstr "" msgstr "Crée et renvoie un nouvel objet de boucle d'événements."
#: ../Doc/library/asyncio-policy.rst:75 #: ../Doc/library/asyncio-policy.rst:75
msgid "Get a child process watcher object." msgid "Get a child process watcher object."
msgstr "" msgstr "Récupère un objet observateur du processus enfant."
#: ../Doc/library/asyncio-policy.rst:77 #: ../Doc/library/asyncio-policy.rst:77
msgid "" msgid ""
"Return a watcher object implementing the :class:`AbstractChildWatcher` " "Return a watcher object implementing the :class:`AbstractChildWatcher` "
"interface." "interface."
msgstr "" msgstr ""
"Renvoie un objet observateur implémentant l'interface :class:"
"`AbstractChildWatcher`."
#: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86 #: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86
msgid "This function is Unix specific." msgid "This function is Unix specific."
msgstr "" msgstr "Cette fonction est spécifique à Unix."
#: ../Doc/library/asyncio-policy.rst:84 #: ../Doc/library/asyncio-policy.rst:84
msgid "Set the current child process watcher to *watcher*." msgid "Set the current child process watcher to *watcher*."
msgstr "" msgstr "Définit l'observateur du processus enfant actuel à *watcher*."
#: ../Doc/library/asyncio-policy.rst:89 #: ../Doc/library/asyncio-policy.rst:89
msgid "asyncio ships with the following built-in policies:" msgid "asyncio ships with the following built-in policies:"
msgstr "" msgstr "*asyncio* est livré avec les stratégies intégrées suivantes :"
#: ../Doc/library/asyncio-policy.rst:94 #: ../Doc/library/asyncio-policy.rst:94
msgid "" msgid ""
"The default asyncio policy. Uses :class:`SelectorEventLoop` on both Unix " "The default asyncio policy. Uses :class:`SelectorEventLoop` on both Unix "
"and Windows platforms." "and Windows platforms."
msgstr "" msgstr ""
"La stratégie *asyncio* par défaut. Utilise :class:`SelectorEventLoop` sur les "
"plates-formes Unix et Windows."
#: ../Doc/library/asyncio-policy.rst:97 #: ../Doc/library/asyncio-policy.rst:97
msgid "" msgid ""
"There is no need to install the default policy manually. asyncio is " "There is no need to install the default policy manually. asyncio is "
"configured to use the default policy automatically." "configured to use the default policy automatically."
msgstr "" msgstr ""
"Il n'est pas nécessaire d'installer la stratégie par défaut manuellement. "
"*asyncio* est configuré pour utiliser automatiquement la stratégie par défaut."
#: ../Doc/library/asyncio-policy.rst:103 #: ../Doc/library/asyncio-policy.rst:103
msgid "" msgid ""
"An alternative event loop policy that uses the :class:`ProactorEventLoop` " "An alternative event loop policy that uses the :class:`ProactorEventLoop` "
"event loop implementation." "event loop implementation."
msgstr "" msgstr ""
"Stratégie de boucle d'événements alternative utilisant l'implémentation de "
"la boucle d'événements :class:`ProactorEventLoop`."
#: ../Doc/library/asyncio-policy.rst:106 #: ../Doc/library/asyncio-policy.rst:106
msgid ":ref:`Availability <availability>`: Windows." msgid ":ref:`Availability <availability>`: Windows."
@ -146,7 +175,7 @@ msgstr ":ref:`Disponibilité <availability>` : Windows."
#: ../Doc/library/asyncio-policy.rst:110 #: ../Doc/library/asyncio-policy.rst:110
msgid "Process Watchers" msgid "Process Watchers"
msgstr "" msgstr "Observateurs de processus"
#: ../Doc/library/asyncio-policy.rst:112 #: ../Doc/library/asyncio-policy.rst:112
msgid "" msgid ""
@ -154,12 +183,18 @@ msgid ""
"processes on Unix. Specifically, the event loop needs to know when a child " "processes on Unix. Specifically, the event loop needs to know when a child "
"process has exited." "process has exited."
msgstr "" msgstr ""
"Un observateur de processus permet de personnaliser la manière dont une "
"boucle d'événements surveille les processus enfants sous Unix. Plus "
"précisément, la boucle d'événements a besoin de savoir quand un processus enfant "
"s'est terminé."
#: ../Doc/library/asyncio-policy.rst:116 #: ../Doc/library/asyncio-policy.rst:116
msgid "" msgid ""
"In asyncio, child processes are created with :func:`create_subprocess_exec` " "In asyncio, child processes are created with :func:`create_subprocess_exec` "
"and :meth:`loop.subprocess_exec` functions." "and :meth:`loop.subprocess_exec` functions."
msgstr "" msgstr ""
"Dans *asyncio*, les processus enfants sont créés avec les fonctions :func:"
"`create_subprocess_exec` et :meth:`loop.subprocess_exec`."
#: ../Doc/library/asyncio-policy.rst:120 #: ../Doc/library/asyncio-policy.rst:120
msgid "" msgid ""
@ -168,22 +203,31 @@ msgid ""
"class:`SafeChildWatcher` (configured to be used by default) and :class:" "class:`SafeChildWatcher` (configured to be used by default) and :class:"
"`FastChildWatcher`." "`FastChildWatcher`."
msgstr "" msgstr ""
"*asyncio* définit la classe de base abstraite :class:`AbstractChildWatcher`, "
"que les observateurs enfants doivent implémenter et possède deux "
"implémentations différentes : :class:`SafeChildWatcher` (configurée pour être "
"utilisé par défaut) et :class:`FastChildWatcher`."
#: ../Doc/library/asyncio-policy.rst:125 #: ../Doc/library/asyncio-policy.rst:125
msgid "" msgid ""
"See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>` " "See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>` "
"section." "section."
msgstr "" msgstr ""
"Voir aussi la section :ref:`sous-processus et fils d'exécution <threads asyncio-sous-"
"processus>`."
#: ../Doc/library/asyncio-policy.rst:128 #: ../Doc/library/asyncio-policy.rst:128
msgid "" msgid ""
"The following two functions can be used to customize the child process " "The following two functions can be used to customize the child process "
"watcher implementation used by the asyncio event loop:" "watcher implementation used by the asyncio event loop:"
msgstr "" msgstr ""
"Les deux fonctions suivantes peuvent être utilisées pour personnaliser "
"l'implémentation de l'observateur de processus enfant utilisé par la boucle "
"d'événements *asyncio* :"
#: ../Doc/library/asyncio-policy.rst:133 #: ../Doc/library/asyncio-policy.rst:133
msgid "Return the current child watcher for the current policy." msgid "Return the current child watcher for the current policy."
msgstr "" msgstr "Renvoie l'observateur enfant actuel pour la stratégie actuelle."
#: ../Doc/library/asyncio-policy.rst:137 #: ../Doc/library/asyncio-policy.rst:137
msgid "" msgid ""
@ -191,6 +235,9 @@ msgid ""
"*watcher* must implement methods defined in the :class:" "*watcher* must implement methods defined in the :class:"
"`AbstractChildWatcher` base class." "`AbstractChildWatcher` base class."
msgstr "" msgstr ""
"Définit l'observateur enfant actuel à *watcher* pour la stratégie "
"actuelle. *watcher* doit implémenter les méthodes définies dans la classe de "
"base :class:`AbstractChildWatcher`."
#: ../Doc/library/asyncio-policy.rst:142 #: ../Doc/library/asyncio-policy.rst:142
msgid "" msgid ""
@ -198,10 +245,14 @@ msgid ""
"watchers. For such event loops, using :func:`set_child_watcher` might be " "watchers. For such event loops, using :func:`set_child_watcher` might be "
"prohibited or have no effect." "prohibited or have no effect."
msgstr "" msgstr ""
"Les implémentations de boucles d'événement tierces peuvent ne pas prendre en "
"charge les observateurs enfants personnalisés. Pour ces boucles "
"d'événements, utiliser: func:`set_child_watcher` pourrait être "
"interdit ou n'avoir aucun effet."
#: ../Doc/library/asyncio-policy.rst:150 #: ../Doc/library/asyncio-policy.rst:150
msgid "Register a new child handler." msgid "Register a new child handler."
msgstr "" msgstr "Enregistre un nouveau gestionnaire."
#: ../Doc/library/asyncio-policy.rst:152 #: ../Doc/library/asyncio-policy.rst:152
msgid "" msgid ""
@ -209,60 +260,75 @@ msgid ""
"with PID equal to *pid* terminates. Specifying another callback for the " "with PID equal to *pid* terminates. Specifying another callback for the "
"same process replaces the previous handler." "same process replaces the previous handler."
msgstr "" msgstr ""
"Organise l'appel de ``callback(pid, returncode, * args)`` lorsqu'un "
"processus dont le PID est égal à *pid* se termine. La spécification d'un "
"autre rappel pour le même processus remplace le gestionnaire précédent."
#: ../Doc/library/asyncio-policy.rst:157 #: ../Doc/library/asyncio-policy.rst:157
msgid "The *callback* callable must be thread-safe." msgid "The *callback* callable must be thread-safe."
msgstr "" msgstr "L'appelable *callback* doit être compatible avec les programmes à fils d'exécution multiples."
#: ../Doc/library/asyncio-policy.rst:161 #: ../Doc/library/asyncio-policy.rst:161
msgid "Removes the handler for process with PID equal to *pid*." msgid "Removes the handler for process with PID equal to *pid*."
msgstr "" msgstr "Supprime le gestionnaire de processus avec un PID égal à *pid*."
#: ../Doc/library/asyncio-policy.rst:163 #: ../Doc/library/asyncio-policy.rst:163
msgid "" msgid ""
"The function returns ``True`` if the handler was successfully removed, " "The function returns ``True`` if the handler was successfully removed, "
"``False`` if there was nothing to remove." "``False`` if there was nothing to remove."
msgstr "" msgstr ""
"La fonction renvoie ``True`` si le gestionnaire a été supprimé avec succès, "
"``False`` s'il n'y a rien à supprimer."
#: ../Doc/library/asyncio-policy.rst:168 #: ../Doc/library/asyncio-policy.rst:168
msgid "Attach the watcher to an event loop." msgid "Attach the watcher to an event loop."
msgstr "" msgstr "Attache l'observateur à une boucle d'événement."
#: ../Doc/library/asyncio-policy.rst:170 #: ../Doc/library/asyncio-policy.rst:170
msgid "" msgid ""
"If the watcher was previously attached to an event loop, then it is first " "If the watcher was previously attached to an event loop, then it is first "
"detached before attaching to the new loop." "detached before attaching to the new loop."
msgstr "" msgstr ""
"Si l'observateur était précédemment attaché à une boucle d'événements, il "
"est d'abord détaché avant d'être rattaché à la nouvelle boucle."
#: ../Doc/library/asyncio-policy.rst:173 #: ../Doc/library/asyncio-policy.rst:173
msgid "Note: loop may be ``None``." msgid "Note: loop may be ``None``."
msgstr "" msgstr "Remarque : la boucle peut être ``None``."
#: ../Doc/library/asyncio-policy.rst:177 #: ../Doc/library/asyncio-policy.rst:177
msgid "Close the watcher." msgid "Close the watcher."
msgstr "" msgstr "Ferme l'observateur."
#: ../Doc/library/asyncio-policy.rst:179 #: ../Doc/library/asyncio-policy.rst:179
msgid "" msgid ""
"This method has to be called to ensure that underlying resources are cleaned-" "This method has to be called to ensure that underlying resources are cleaned-"
"up." "up."
msgstr "" msgstr ""
"Cette méthode doit être appelée pour s'assurer que les ressources sous-"
"jacentes sont nettoyées."
#: ../Doc/library/asyncio-policy.rst:184 #: ../Doc/library/asyncio-policy.rst:184
msgid "" msgid ""
"This implementation avoids disrupting other code spawning processes by " "This implementation avoids disrupting other code spawning processes by "
"polling every process explicitly on a :py:data:`SIGCHLD` signal." "polling every process explicitly on a :py:data:`SIGCHLD` signal."
msgstr "" msgstr ""
"Cette implémentation évite de perturber un autre code qui aurait besoin de générer des processus "
"en interrogeant chaque processus explicitement par un signal :py:data:"
"`SIGCHLD`."
#: ../Doc/library/asyncio-policy.rst:187 #: ../Doc/library/asyncio-policy.rst:187
msgid "" msgid ""
"This is a safe solution but it has a significant overhead when handling a " "This is a safe solution but it has a significant overhead when handling a "
"big number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)." "big number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)."
msgstr "" msgstr ""
"C'est une solution sûre, mais elle nécessite un temps système important lors "
"de la manipulation d'un grand nombre de processus (*O(n)* à chaque fois que "
"un :py:data:`SIGCHLD` est reçu)."
#: ../Doc/library/asyncio-policy.rst:191 #: ../Doc/library/asyncio-policy.rst:191
msgid "asyncio uses this safe implementation by default." msgid "asyncio uses this safe implementation by default."
msgstr "" msgstr "*asyncio* utilise cette implémentation sécurisée par défaut."
#: ../Doc/library/asyncio-policy.rst:195 #: ../Doc/library/asyncio-policy.rst:195
msgid "" msgid ""
@ -270,16 +336,21 @@ msgid ""
"waitpid(-1)`` directly, possibly breaking other code spawning processes and " "waitpid(-1)`` directly, possibly breaking other code spawning processes and "
"waiting for their termination." "waiting for their termination."
msgstr "" msgstr ""
"Cette implémentation récupère tous les processus terminés en appelant "
"directement ``os.waitpid(-1)``, cassant éventuellement un autre "
"code qui génère des processus et attend leur fin."
#: ../Doc/library/asyncio-policy.rst:199 #: ../Doc/library/asyncio-policy.rst:199
msgid "" msgid ""
"There is no noticeable overhead when handling a big number of children " "There is no noticeable overhead when handling a big number of children "
"(*O(1)* each time a child terminates)." "(*O(1)* each time a child terminates)."
msgstr "" msgstr ""
"Il n'y a pas de surcharge visible lors de la manipulation d'un grand nombre "
"d'enfants (*O(1)* à chaque fois qu'un enfant se termine)."
#: ../Doc/library/asyncio-policy.rst:204 #: ../Doc/library/asyncio-policy.rst:204
msgid "Custom Policies" msgid "Custom Policies"
msgstr "" msgstr "Stratégies personnalisées"
#: ../Doc/library/asyncio-policy.rst:206 #: ../Doc/library/asyncio-policy.rst:206
msgid "" msgid ""
@ -287,3 +358,7 @@ msgid ""
"`DefaultEventLoopPolicy` and override the methods for which custom behavior " "`DefaultEventLoopPolicy` and override the methods for which custom behavior "
"is wanted, e.g.::" "is wanted, e.g.::"
msgstr "" msgstr ""
"Pour implémenter une nouvelle politique de boucle dévénements, il est "
"recommandé de sous-classer :class:`DefaultEventLoopPolicy` et de "
"réimplémenter les méthodes pour lesquelles un comportement personnalisé est "
"souhaité, par exemple : ::"