1
0
Fork 0
python-docs-fr/library/cmd.po

457 lines
21 KiB
Plaintext
Raw Permalink 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 ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2022-03-23 17:40:12 +00:00
"POT-Creation-Date: 2022-03-23 18:39+0100\n"
2022-11-15 07:50:31 +00:00
"PO-Revision-Date: 2022-11-04 21:20-0400\n"
"Last-Translator: Edith Viau <info@eviau.net>\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"
2022-11-15 07:50:31 +00:00
"X-Generator: Poedit 3.0.1\n"
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:2
2016-10-30 09:46:26 +00:00
msgid ":mod:`cmd` --- Support for line-oriented command interpreters"
msgstr ":mod:`cmd` — Interpréteurs en ligne de commande."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:9
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/cmd.py`"
msgstr "**Code source:** :source:`Lib/cmd.py`"
#: library/cmd.rst:13
2016-10-30 09:46:26 +00:00
msgid ""
"The :class:`Cmd` class provides a simple framework for writing line-oriented "
"command interpreters. These are often useful for test harnesses, "
"administrative tools, and prototypes that will later be wrapped in a more "
"sophisticated interface."
2017-09-22 11:44:56 +00:00
msgstr ""
"La :class:`Cmd` fournit une base simple permettant d'écrire des "
"interpréteurs en ligne de commande. Ceux-ci sont souvent utiles pour piloter "
"des tests, pour des outils administratifs, et pour des prototypes destinés à "
"être intégrés à une interface plus sophistiquée."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:20
2016-10-30 09:46:26 +00:00
msgid ""
"A :class:`Cmd` instance or subclass instance is a line-oriented interpreter "
"framework. There is no good reason to instantiate :class:`Cmd` itself; "
"rather, it's useful as a superclass of an interpreter class you define "
"yourself in order to inherit :class:`Cmd`'s methods and encapsulate action "
"methods."
2017-09-22 11:44:56 +00:00
msgstr ""
2017-09-24 21:19:43 +00:00
"Une instance de :class:`Cmd` ou d'une classe en héritant est un *framework* "
"orienté ligne de commande. Il n'y a pas de bonne raison d'instancier :class:"
"`Cmd` directement. Elle est plutôt utile en tant que classe mère d'une "
"classe-interprète que vous définirez afin d'hériter des méthodes de :class:"
"`Cmd` et d'encapsuler les opérations."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:25
2016-10-30 09:46:26 +00:00
msgid ""
"The optional argument *completekey* is the :mod:`readline` name of a "
"completion key; it defaults to :kbd:`Tab`. If *completekey* is not :const:"
"`None` and :mod:`readline` is available, command completion is done "
"automatically."
2017-09-22 11:44:56 +00:00
msgstr ""
"L'argument facultatif *completekey* est le nom :mod:`readline` d'une touche "
"de complétion. Si *completekey* ne vaut pas :const:`None` et que :mod:"
"`readline` est disponible, la complétion de commandes est faite "
"automatiquement."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:29
2016-10-30 09:46:26 +00:00
msgid ""
"The optional arguments *stdin* and *stdout* specify the input and output "
"file objects that the Cmd instance or subclass instance will use for input "
"and output. If not specified, they will default to :data:`sys.stdin` and :"
"data:`sys.stdout`."
2017-09-22 11:44:56 +00:00
msgstr ""
"Les arguments facultatifs *stdin* et *stdout* spécifient les objets-fichiers "
"de lecture et d'écriture que l'instance de Cmd ou d'une classe fille "
"utilisera comme entrée et sortie. Si ces arguments ne sont pas spécifiés, "
"ils prendront comme valeur par défaut :data:`sys.stdin` et :data:`sys."
"stdout`."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:34
2016-10-30 09:46:26 +00:00
msgid ""
"If you want a given *stdin* to be used, make sure to set the instance's :"
"attr:`use_rawinput` attribute to ``False``, otherwise *stdin* will be "
"ignored."
2017-09-22 11:44:56 +00:00
msgstr ""
"Si vous souhaitez qu'un *stdin* donné soit utilisé, assurez-vous que "
"l'attribut :attr:`use_rawinput` de l'instance vaille ``False``, faute de "
"quoi *stdin* sera ignoré."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:42
2016-10-30 09:46:26 +00:00
msgid "Cmd Objects"
2017-09-22 10:11:51 +00:00
msgstr "Objets Cmd"
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:44
2016-10-30 09:46:26 +00:00
msgid "A :class:`Cmd` instance has the following methods:"
msgstr "Une instance de :class:`Cmd` possède les méthodes suivantes :"
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:49
2016-10-30 09:46:26 +00:00
msgid ""
"Repeatedly issue a prompt, accept input, parse an initial prefix off the "
"received input, and dispatch to action methods, passing them the remainder "
"of the line as argument."
2017-09-22 11:44:56 +00:00
msgstr ""
"Affiche une invite de commande de manière répétée, accepte une entrée, "
"soustrait un préfixe initial de l'entrée reçue et envoie aux méthodes "
"d'opération la partie restante de l'entrée reçue."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:53
2016-10-30 09:46:26 +00:00
msgid ""
"The optional argument is a banner or intro string to be issued before the "
"first prompt (this overrides the :attr:`intro` class attribute)."
2017-09-22 11:44:56 +00:00
msgstr ""
"L'argument facultatif est une bannière ou chaîne de caractères "
"d'introduction à afficher avant la première invite de commande (il redéfinit "
"l'attribut de classe :attr:`intro`)."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:56
2016-10-30 09:46:26 +00:00
msgid ""
"If the :mod:`readline` module is loaded, input will automatically inherit :"
"program:`bash`\\ -like history-list editing (e.g. :kbd:`Control-P` scrolls "
"back to the last command, :kbd:`Control-N` forward to the next one, :kbd:"
"`Control-F` moves the cursor to the right non-destructively, :kbd:`Control-"
"B` moves the cursor to the left non-destructively, etc.)."
2017-09-22 11:44:56 +00:00
msgstr ""
"Si le module :mod:`readline` est chargé, l'entrée héritera automatiquement "
"d'une édition d'historique similaire à :program:`bash` (Par exemple, :kbd:"
"`Control-P` reviendra à la dernière commande, :kbd:`Control-N` avancera à la "
"suivante, :kbd:`Control-F` déplace le curseur vers la droite, :kbd:`Control-"
"B` déplace le curseur vers la gauche, etc...)."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:62
2016-10-30 09:46:26 +00:00
msgid "An end-of-file on input is passed back as the string ``'EOF'``."
2017-09-22 11:44:56 +00:00
msgstr ""
"Une caractère de fin de fichier est transmis via la chaîne de caractères "
"``'EOF'``."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:68
2016-10-30 09:46:26 +00:00
msgid ""
"An interpreter instance will recognize a command name ``foo`` if and only if "
"it has a method :meth:`do_foo`. As a special case, a line beginning with "
"the character ``'?'`` is dispatched to the method :meth:`do_help`. As "
"another special case, a line beginning with the character ``'!'`` is "
"dispatched to the method :meth:`do_shell` (if such a method is defined)."
msgstr ""
2017-09-22 10:11:51 +00:00
"Une instance d'un interpréteur reconnaîtra un nom de commande ``foo`` si et "
"seulement si celle-ci possède une méthode :meth:`do_foo`. Les lignes "
"commençant par le caractère ``'?'`` sont un cas particulier: elles sont "
"envoyées à la méthode :meth:`do_help`. Les lignes commençant par le "
"caractère ``'!'`` sont également un cas particulier: elles sont envoyées à "
"la méthode :meth:`do_shell` (si une telle méthode est définie)."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:74
2016-10-30 09:46:26 +00:00
msgid ""
"This method will return when the :meth:`postcmd` method returns a true "
"value. The *stop* argument to :meth:`postcmd` is the return value from the "
"command's corresponding :meth:`do_\\*` method."
2017-09-22 11:44:56 +00:00
msgstr ""
"Cette méthode ne s'arrêtera que lorsque :meth:`postcmd` renverra une valeur "
"vraie. L'argument *stop* de :meth:`postcmd` est la valeur de retour de la "
"méthode :meth:`do_\\*` correspondant à la commande."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:78
2016-10-30 09:46:26 +00:00
msgid ""
"If completion is enabled, completing commands will be done automatically, "
"and completing of commands args is done by calling :meth:`complete_foo` with "
"arguments *text*, *line*, *begidx*, and *endidx*. *text* is the string "
"prefix we are attempting to match: all returned matches must begin with it. "
"*line* is the current input line with leading whitespace removed, *begidx* "
"and *endidx* are the beginning and ending indexes of the prefix text, which "
"could be used to provide different completion depending upon which position "
"the argument is in."
2017-09-22 11:44:56 +00:00
msgstr ""
"Si la complétion est activée, la complétion de commandes sera faite "
"automatiquement; et la complétion d'arguments sera faite en appelant :meth:"
"`complete_foo` avec les arguments *text*, *line*, *begidx*, et *endidx*. "
"*text* est le préfixe que nous cherchons à faire coïncider: toutes les "
"valeurs renvoyées doivent commencer par ce préfixe. *line* est la ligne "
"d'entrée actuelle sans les espaces blancs de début. *begidx* et *endidx* "
"sont les index de début et de fin du préfixe, ils pourraient être utilisés "
"pour fournir différentes complétions en fonction de la position de "
"l'argument."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:86
2016-10-30 09:46:26 +00:00
msgid ""
"All subclasses of :class:`Cmd` inherit a predefined :meth:`do_help`. This "
"method, called with an argument ``'bar'``, invokes the corresponding method :"
"meth:`help_bar`, and if that is not present, prints the docstring of :meth:"
"`do_bar`, if available. With no argument, :meth:`do_help` lists all "
2022-03-23 17:40:12 +00:00
"available help topics (that is, all commands with corresponding :meth:"
"`help_\\*` methods or commands that have docstrings), and also lists any "
2016-10-30 09:46:26 +00:00
"undocumented commands."
msgstr ""
2017-09-22 10:11:51 +00:00
"Toutes les classes filles de :class:`Cmd` héritent d'une méthode :meth:"
"`do_help` prédéfinie. Cette méthode appellera la méthode :meth:`help_bar` "
2017-09-24 21:19:43 +00:00
"lorsqu'elle est appelée avec un argument ``'bar'``. Si celle-ci n'est pas "
"définie, elle affichera la *docstring* de :meth:`do_bar`, (si elle a une "
"*docstring*). Sans argument, :meth:`do_help` listera tous les sujets d'aide "
2017-09-24 21:19:43 +00:00
"(c'est à dire, toutes les commandes avec une méthode :meth:`help_\\\\*` "
"correspondante ou commande ayant une *docstring*, elle lisera aussi les "
2017-09-24 21:19:43 +00:00
"commandes non documentées."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:97
2016-10-30 09:46:26 +00:00
msgid ""
"Interpret the argument as though it had been typed in response to the "
"prompt. This may be overridden, but should not normally need to be; see the :"
"meth:`precmd` and :meth:`postcmd` methods for useful execution hooks. The "
"return value is a flag indicating whether interpretation of commands by the "
"interpreter should stop. If there is a :meth:`do_\\*` method for the "
"command *str*, the return value of that method is returned, otherwise the "
"return value from the :meth:`default` method is returned."
2017-09-22 11:44:56 +00:00
msgstr ""
"Interprète l'argument comme si il avait été entré en réponse à l'invite de "
"commande. Cette méthode peut être surchargée, mais ne devrait normalement "
"pas avoir besoin de l'être; voir les méthodes :meth:`precmd` et :meth:"
"`postcmd` pour altérer l'exécution d'une commande. La valeur de retour est "
"un *flag* indiquant si l'interprétation de commandes par l'interpréteur "
"devrait arrêter. S'il existe une méthode :meth:`do_\\*` pour la commande "
"*str*, la valeur de retour de cette méthode est renvoyée. Dans le cas "
"contraire, la valeur de retour de la méthode :meth:`default` est renvoyée."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:108
2016-10-30 09:46:26 +00:00
msgid ""
"Method called when an empty line is entered in response to the prompt. If "
"this method is not overridden, it repeats the last nonempty command entered."
2017-09-22 11:44:56 +00:00
msgstr ""
"Méthode appelée quand une ligne vide est entrée en réponse à l'invite de "
"commande. Si cette méthode n'est pas surchargée, elle répète la dernière "
"commande non-vide entrée."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:114
2016-10-30 09:46:26 +00:00
msgid ""
"Method called on an input line when the command prefix is not recognized. If "
"this method is not overridden, it prints an error message and returns."
msgstr ""
2017-09-22 10:11:51 +00:00
"Méthode appelée lorsque le préfixe de commande d'une ligne entrée n'est pas "
"reconnu. Si cette méthode n'est pas surchargée, elle affiche un message "
"d'erreur et s'arrête."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:120
2016-10-30 09:46:26 +00:00
msgid ""
"Method called to complete an input line when no command-specific :meth:"
"`complete_\\*` method is available. By default, it returns an empty list."
msgstr ""
2017-09-22 10:11:51 +00:00
"Méthode appelée pour compléter une ligne entrée quand aucune méthode :meth:"
"`complete_\\*` spécifique à la commande n'est disponible. Par défaut, elle "
"renvoie une liste vide."
2016-10-30 09:46:26 +00:00
#: library/cmd.rst:126
2016-10-30 09:46:26 +00:00
msgid ""
2022-03-23 17:40:12 +00:00
"Method called to display a list of strings as a compact set of columns. Each "
"column is only as wide as necessary. Columns are separated by two spaces for "
"readability."
msgstr ""
2022-11-15 07:50:31 +00:00
"Méthode appelée pour afficher une liste de chaînes de caractères sous la "
"forme d'un ensemble compact de colonnes. Chaque colonne est de largeur "
"minimale. Les colonnes sont séparées par deux espaces pour faciliter la "
"lecture."
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:133
msgid ""
2016-10-30 09:46:26 +00:00
"Hook method executed just before the command line *line* is interpreted, but "
"after the input prompt is generated and issued. This method is a stub in :"
"class:`Cmd`; it exists to be overridden by subclasses. The return value is "
"used as the command which will be executed by the :meth:`onecmd` method; "
"the :meth:`precmd` implementation may re-write the command or simply return "
"*line* unchanged."
2017-09-22 11:44:56 +00:00
msgstr ""
"Méthode de rappel exécutée juste avant que la ligne de commande *line* ne "
"soit interprétée, mais après que l'invite de commande ait été généré et "
"affiché. Cette méthode existe afin d'être surchargée par des classes filles "
"de :class:`Cmd`. La valeur de retour est utilisée comme la commande qui sera "
2017-09-24 21:19:43 +00:00
"exécutée par la méthode :meth:`onecmd`. L'implémentation de :meth:`precmd` "
2017-09-22 11:44:56 +00:00
"peut réécrire la commande ou simplement renvoyer *line* sans modification."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:143
2016-10-30 09:46:26 +00:00
msgid ""
"Hook method executed just after a command dispatch is finished. This method "
"is a stub in :class:`Cmd`; it exists to be overridden by subclasses. *line* "
"is the command line which was executed, and *stop* is a flag which indicates "
"whether execution will be terminated after the call to :meth:`postcmd`; this "
"will be the return value of the :meth:`onecmd` method. The return value of "
"this method will be used as the new value for the internal flag which "
"corresponds to *stop*; returning false will cause interpretation to continue."
2017-09-22 11:44:56 +00:00
msgstr ""
"Méthode de rappel exécutée juste après qu'une commande ait été exécutée. "
"Cette méthode existe afin d'être surchargée par des classes filles de :class:"
"`Cmd`. *line est la ligne de commande ayant été exécutée et *stop* est un "
"*flag* indiquant si l'exécution sera terminée après un appel à :meth:"
"`postcmd`. *stop* sera la valeur de retour de :meth:`onecmd`. La valeur de "
"retour de cette méthode sera utilisée comme nouvelle valeur pour le *flag* "
"interne correspondant à *stop*. Renvoyer *False* permettra à "
"l'interprétation de continuer."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:154
2016-10-30 09:46:26 +00:00
msgid ""
"Hook method executed once when :meth:`cmdloop` is called. This method is a "
"stub in :class:`Cmd`; it exists to be overridden by subclasses."
2017-09-22 11:44:56 +00:00
msgstr ""
"Méthode de rappel exécutée une fois lorsque :meth:`cmdloop` est appelée. "
"Cette méthode existe afin d'être surchargée par des classes filles de :class:"
"`Cmd`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:160
2016-10-30 09:46:26 +00:00
msgid ""
"Hook method executed once when :meth:`cmdloop` is about to return. This "
"method is a stub in :class:`Cmd`; it exists to be overridden by subclasses."
2017-09-22 11:44:56 +00:00
msgstr ""
"Méthode de rappel exécutée une fois lorsque :meth:`cmdloop` va s'arrêter. "
"Cette méthode existe afin d'être surchargée par des classes filles de :class:"
"`Cmd`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:164
2016-10-30 09:46:26 +00:00
msgid ""
"Instances of :class:`Cmd` subclasses have some public instance variables:"
msgstr ""
2017-09-22 10:11:51 +00:00
"Les instances de classes filles de :class:`Cmd` possèdent des variables "
"d'instance publiques :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:168
2016-10-30 09:46:26 +00:00
msgid "The prompt issued to solicit input."
2017-09-22 11:02:46 +00:00
msgstr "L'invite de commande affiché pour solliciter une entrée."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:173
2016-10-30 09:46:26 +00:00
msgid "The string of characters accepted for the command prefix."
2017-09-22 10:11:51 +00:00
msgstr "La chaîne de caractères acceptée en tant que préfixe de commande."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:178
2016-10-30 09:46:26 +00:00
msgid "The last nonempty command prefix seen."
2017-09-22 10:11:51 +00:00
msgstr "Le dernier préfixe de commande non-vide vu."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:183
2016-10-30 09:46:26 +00:00
msgid ""
"A list of queued input lines. The cmdqueue list is checked in :meth:"
"`cmdloop` when new input is needed; if it is nonempty, its elements will be "
"processed in order, as if entered at the prompt."
2017-09-22 11:44:56 +00:00
msgstr ""
"Une liste de lignes entrées en file. La liste *cmdqueue* est vérifiée dans :"
"meth:`cmdloop` lorsqu'une nouvelle entrée est nécessitée; si elle n'est pas "
"vide, ses éléments seront traités dans l'ordre, comme si ils avaient entrés "
"dans l'invite de commande."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:190
2016-10-30 09:46:26 +00:00
msgid ""
"A string to issue as an intro or banner. May be overridden by giving the :"
"meth:`cmdloop` method an argument."
msgstr ""
"Une chaîne de caractères à afficher en introduction ou bannière. Peut être "
2017-09-22 10:11:51 +00:00
"surchargée en passant un argument à la méthode :meth:`cmdloop`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:196
2016-10-30 09:46:26 +00:00
msgid ""
"The header to issue if the help output has a section for documented commands."
msgstr ""
2017-09-22 10:11:51 +00:00
"L'en-tête à afficher si la sortie de l'aide possède une section pour les "
"commandes documentées."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:201
2016-10-30 09:46:26 +00:00
msgid ""
"The header to issue if the help output has a section for miscellaneous help "
"topics (that is, there are :meth:`help_\\*` methods without corresponding :"
"meth:`do_\\*` methods)."
msgstr ""
2017-09-22 10:11:51 +00:00
"L'en-tête à afficher si la sortie de l'aide possède une section pour divers "
"sujets (c'est-à-dire qu'il existe des méthodes :meth:`help_\\*` sans "
"méthodes :meth:`do_\\*` correspondantes)."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:208
2016-10-30 09:46:26 +00:00
msgid ""
"The header to issue if the help output has a section for undocumented "
"commands (that is, there are :meth:`do_\\*` methods without corresponding :"
"meth:`help_\\*` methods)."
msgstr ""
2017-09-22 10:11:51 +00:00
"L'en-tête à afficher si la sortie de l'aide possède une section pour les "
2022-03-23 17:40:12 +00:00
"commandes non documentées (c'est-à-dire qu'il existe des méthodes :meth:"
"`dop_\\*` sans méthodes :meth:`help_\\*` correspondantes)."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:215
2016-10-30 09:46:26 +00:00
msgid ""
"The character used to draw separator lines under the help-message headers. "
"If empty, no ruler line is drawn. It defaults to ``'='``."
msgstr ""
2017-09-22 10:11:51 +00:00
"Le caractère utilisé pour afficher des lignes de séparation sous les en-"
"têtes de messages d'aide. Si il est vide, aucune ligne de séparation n'est "
"affichée. Par défaut, ce caractère vaut ``'='``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:221
2016-10-30 09:46:26 +00:00
msgid ""
"A flag, defaulting to true. If true, :meth:`cmdloop` uses :func:`input` to "
"display a prompt and read the next command; if false, :meth:`sys.stdout."
"write` and :meth:`sys.stdin.readline` are used. (This means that by "
"importing :mod:`readline`, on systems that support it, the interpreter will "
"automatically support :program:`Emacs`\\ -like line editing and command-"
"history keystrokes.)"
2017-09-22 11:44:56 +00:00
msgstr ""
2017-09-24 21:19:43 +00:00
"Un *flag*, valant *True* par défaut. Si ce *flag* est vrai, :meth:`cmdloop` "
2017-09-22 11:44:56 +00:00
"utilise :func:`input` pour afficher une invite de commande et lire la "
"prochaine commande; si il est faux, :meth:`sys.stdout.write` et :meth:`sys."
"stdin.readline` sont utilisées. (Cela signifie qu'en important :mod:"
2018-03-20 23:55:50 +00:00
"`readline` sur les systèmes qui le supportent, l'interpréteur va "
2017-09-22 11:44:56 +00:00
"automatiquement supporter une édition de ligne similaire à :program:`Emacs` "
"ainsi que des touches d'historique de commande)."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:231
2016-10-30 09:46:26 +00:00
msgid "Cmd Example"
2017-09-22 10:11:51 +00:00
msgstr "Exemple"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:235
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`cmd` module is mainly useful for building custom shells that let a "
"user work with a program interactively."
2017-09-22 11:44:56 +00:00
msgstr ""
"Le module :mod:`cmd` est utile pour produire des invites de commande "
"permettant à l'utilisateur de travailler avec un programme de manière "
"interactive."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:238
2016-10-30 09:46:26 +00:00
msgid ""
"This section presents a simple example of how to build a shell around a few "
"of the commands in the :mod:`turtle` module."
2017-09-22 11:44:56 +00:00
msgstr ""
"Cette section présente un exemple simple de comment produire une invite de "
"commande autour de quelques commandes du module :mod:`turtle`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:241
2016-10-30 09:46:26 +00:00
msgid ""
"Basic turtle commands such as :meth:`~turtle.forward` are added to a :class:"
"`Cmd` subclass with method named :meth:`do_forward`. The argument is "
"converted to a number and dispatched to the turtle module. The docstring is "
"used in the help utility provided by the shell."
msgstr ""
"Des commandes *turtle* basiques telles que :meth:`~turtle.forward` sont "
2017-09-22 10:11:51 +00:00
"ajoutées à une classe fille de :class:`Cmd` avec la méthode appelée :meth:"
"`do_forward`. L'argument est converti en nombre et envoyé au module "
"*turtle*. La *docstring* est utilisée dans l'utilitaire d'aide fourni par "
"l'invite de commande."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:246
2016-10-30 09:46:26 +00:00
msgid ""
"The example also includes a basic record and playback facility implemented "
"with the :meth:`~Cmd.precmd` method which is responsible for converting the "
"input to lowercase and writing the commands to a file. The :meth:"
"`do_playback` method reads the file and adds the recorded commands to the :"
"attr:`cmdqueue` for immediate playback::"
msgstr ""
2017-09-22 10:11:51 +00:00
"L'exemple inclut également un utilitaire d'enregistrement et de *playback* "
"implémenté avec la méthode :meth:`~Cmd.precmd`, qui est responsable du "
"passage de l'entrée en minuscules ainsi que d'écrire les commandes dans un "
"fichier. La méthode :meth:`do_playback` lit le fichier et ajoute les "
"commandes enregistrées à :attr:`cmdqueue` pour être rejouées immédiatement ::"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/cmd.rst:327
2016-10-30 09:46:26 +00:00
msgid ""
"Here is a sample session with the turtle shell showing the help functions, "
"using blank lines to repeat commands, and the simple record and playback "
"facility:"
msgstr ""
"Voici une session d'exemple avec l'invite de commande *turtle*. Elle montre "
2017-09-22 10:11:51 +00:00
"les fonctions d'aide, utilise les lignes vides pour répéter des commandes et "
"montre l'utilitaire de *playback* :"