From 0658a9995dc5072cfb8bf8136fd45a3e3e0f3fb2 Mon Sep 17 00:00:00 2001 From: fsetton <48808345+fsetton@users.noreply.github.com> Date: Sat, 16 Nov 2019 15:36:01 +0100 Subject: [PATCH] =?UTF-8?q?Traduction=20des=20premi=C3=A8res=20lignes=20de?= =?UTF-8?q?=20asyncio-policy.po=20(#619)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/asyncio-policy.po | 126 ++++++++++++++++++++++++++++++-------- 1 file changed, 102 insertions(+), 24 deletions(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 07b91656..677dab9f 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -5,18 +5,19 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-09-04 11:33+0200\n" -"PO-Revision-Date: 2018-11-29 18:26+0100\n" -"Last-Translator: FULL NAME \n" -"Language-Team: FRENCH \n" +"POT-Creation-Date: 2019-01-03 16:57+0100\n" +"PO-Revision-Date: 2019-04-11 22:41+0200\n" +"Language-Team: François Setton \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: \n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/asyncio-policy.rst:8 msgid "Policies" -msgstr "" +msgstr "Stratégies" #: ../Doc/library/asyncio-policy.rst:10 msgid "" @@ -24,12 +25,19 @@ msgid "" "management of the event loop. Each event loop has a default policy, which " "can be changed and customized using the policy API." 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 msgid "" "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." 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 msgid "" @@ -37,46 +45,57 @@ msgid "" "`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` " "functions can be customized." 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 msgid "" "Policy objects should implement the APIs defined in the :class:" "`AbstractEventLoopPolicy` abstract base class." 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 msgid "Getting and Setting the Policy" -msgstr "" +msgstr "Obtenir et définir la stratégie" #: ../Doc/library/asyncio-policy.rst:29 msgid "" "The following functions can be used to get and set the policy for the " "current process:" 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 msgid "Return the current process-wide policy." -msgstr "" +msgstr "Renvoie la stratégie actuelle à l'échelle du processus." #: ../Doc/library/asyncio-policy.rst:38 msgid "Set the current process-wide policy to *policy*." msgstr "" +"Définit la stratégie actuelle sur l'ensemble du processus sur *policy*." #: ../Doc/library/asyncio-policy.rst:40 msgid "If *policy* is set to ``None``, the default policy is restored." msgstr "" +"Si *policy* est définie sur ``None``, la stratégie par défaut est restaurée." #: ../Doc/library/asyncio-policy.rst:44 msgid "Policy Objects" -msgstr "" +msgstr "Sujets de stratégie" #: ../Doc/library/asyncio-policy.rst:46 msgid "The abstract event loop policy base class is defined as follows:" 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 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 msgid "Get the event loop for the current context." @@ -87,52 +106,61 @@ msgid "" "Return an event loop object implementing the :class:`AbstractEventLoop` " "interface." 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 msgid "This method should never return ``None``." -msgstr "" +msgstr "Cette méthode ne devrait jamais renvoyer ``None``." #: ../Doc/library/asyncio-policy.rst:65 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 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 msgid "Get a child process watcher object." -msgstr "" +msgstr "Récupère un objet observateur du processus enfant." #: ../Doc/library/asyncio-policy.rst:77 msgid "" "Return a watcher object implementing the :class:`AbstractChildWatcher` " "interface." msgstr "" +"Renvoie un objet observateur implémentant l'interface :class:" +"`AbstractChildWatcher`." #: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86 msgid "This function is Unix specific." -msgstr "" +msgstr "Cette fonction est spécifique à Unix." #: ../Doc/library/asyncio-policy.rst:84 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 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 msgid "" "The default asyncio policy. Uses :class:`SelectorEventLoop` on Unix and :" "class:`ProactorEventLoop` on Windows." msgstr "" +"La stratégie *asyncio* par défaut. Utilise :class:`SelectorEventLoop` sur " +"les plates-formes Unix et Windows." #: ../Doc/library/asyncio-policy.rst:97 msgid "" "There is no need to install the default policy manually. asyncio is " "configured to use the default policy automatically." 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:102 msgid "On Windows, :class:`ProactorEventLoop` is now used by default." @@ -143,6 +171,8 @@ msgid "" "An alternative event loop policy that uses the :class:`SelectorEventLoop` " "event loop implementation." 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:110 ../Doc/library/asyncio-policy.rst:118 msgid ":ref:`Availability `: Windows." @@ -156,7 +186,7 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:123 msgid "Process Watchers" -msgstr "" +msgstr "Observateurs de processus" #: ../Doc/library/asyncio-policy.rst:125 msgid "" @@ -164,12 +194,18 @@ msgid "" "processes on Unix. Specifically, the event loop needs to know when a child " "process has exited." 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:129 msgid "" "In asyncio, child processes are created with :func:`create_subprocess_exec` " "and :meth:`loop.subprocess_exec` functions." 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:133 msgid "" @@ -179,22 +215,31 @@ msgid "" "`MultiLoopChildWatcher`, :class:`SafeChildWatcher`, and :class:" "`FastChildWatcher`." 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:139 msgid "" "See also the :ref:`Subprocess and Threads ` " "section." msgstr "" +"Voir aussi la section :ref:`sous-processus et fils d'exécution `." #: ../Doc/library/asyncio-policy.rst:142 msgid "" "The following two functions can be used to customize the child process " "watcher implementation used by the asyncio event loop:" 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:147 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:151 msgid "" @@ -202,6 +247,9 @@ msgid "" "*watcher* must implement methods defined in the :class:" "`AbstractChildWatcher` base class." 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:156 msgid "" @@ -209,10 +257,14 @@ msgid "" "watchers. For such event loops, using :func:`set_child_watcher` might be " "prohibited or have no effect." 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:164 msgid "Register a new child handler." -msgstr "" +msgstr "Enregistre un nouveau gestionnaire." #: ../Doc/library/asyncio-policy.rst:166 msgid "" @@ -220,34 +272,43 @@ msgid "" "with PID equal to *pid* terminates. Specifying another callback for the " "same process replaces the previous handler." 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:171 msgid "The *callback* callable must be thread-safe." msgstr "" +"L'appelable *callback* doit être compatible avec les programmes à fils " +"d'exécution multiples." #: ../Doc/library/asyncio-policy.rst:175 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:177 msgid "" "The function returns ``True`` if the handler was successfully removed, " "``False`` if there was nothing to remove." 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:182 msgid "Attach the watcher to an event loop." -msgstr "" +msgstr "Attache l'observateur à une boucle d'événement." #: ../Doc/library/asyncio-policy.rst:184 msgid "" "If the watcher was previously attached to an event loop, then it is first " "detached before attaching to the new loop." 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:187 msgid "Note: loop may be ``None``." -msgstr "" +msgstr "Remarque : la boucle peut être ``None``." #: ../Doc/library/asyncio-policy.rst:191 msgid "Return ``True`` if the watcher is ready to use." @@ -261,24 +322,32 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:200 msgid "Close the watcher." -msgstr "" +msgstr "Ferme l'observateur." #: ../Doc/library/asyncio-policy.rst:202 msgid "" "This method has to be called to ensure that underlying resources are cleaned-" "up." msgstr "" +"Cette méthode doit être appelée pour s'assurer que les ressources sous-" +"jacentes sont nettoyées." #: ../Doc/library/asyncio-policy.rst:207 msgid "" "This implementation starts a new waiting thread for every subprocess spawn." 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:209 msgid "" "It works reliably even when the asyncio event loop is run in a non-main OS " "thread." 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:211 msgid "" @@ -336,12 +405,17 @@ msgid "" "waitpid(-1)`` directly, possibly breaking other code spawning processes and " "waiting for their termination." 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:254 msgid "" "There is no noticeable overhead when handling a big number of children " "(*O(1)* each time a child terminates)." 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:257 msgid "" @@ -351,7 +425,7 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:262 msgid "Custom Policies" -msgstr "" +msgstr "Stratégies personnalisées" #: ../Doc/library/asyncio-policy.rst:264 msgid "" @@ -359,3 +433,7 @@ msgid "" "`DefaultEventLoopPolicy` and override the methods for which custom behavior " "is wanted, e.g.::" 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 : ::"