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"
|
2019-09-04 09:35:23 +00:00
|
|
|
|
"POT-Creation-Date: 2019-09-04 11:33+0200\n"
|
2018-10-20 10:32:58 +00:00
|
|
|
|
"PO-Revision-Date: 2018-10-20 12:15+0200\n"
|
2018-11-29 15:13:39 +00:00
|
|
|
|
"Last-Translator: \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"
|
2018-10-10 16:21:55 +00:00
|
|
|
|
"X-Generator: Poedit 2.1.1\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:2
|
|
|
|
|
msgid ":mod:`pprint` --- Data pretty printer"
|
2018-10-12 12:13:10 +00:00
|
|
|
|
msgstr ":mod:`pprint` — L’affichage élégant de données"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:10
|
|
|
|
|
msgid "**Source code:** :source:`Lib/pprint.py`"
|
|
|
|
|
msgstr "**Code source :** :source:`Lib/pprint.py`"
|
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:14
|
|
|
|
|
msgid ""
|
|
|
|
|
"The :mod:`pprint` module provides a capability to \"pretty-print\" arbitrary "
|
|
|
|
|
"Python data structures in a form which can be used as input to the "
|
|
|
|
|
"interpreter. If the formatted structures include objects which are not "
|
|
|
|
|
"fundamental Python types, the representation may not be loadable. This may "
|
|
|
|
|
"be the case if objects such as files, sockets or classes are included, as "
|
|
|
|
|
"well as many other objects which are not representable as Python literals."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Le module :mod:`pprint` permet « d’afficher élégamment » des structures de "
|
|
|
|
|
"données Python arbitraires sous une forme qui peut être utilisée ensuite "
|
|
|
|
|
"comme une entrée dans l’interpréteur. Si les structures formatées incluent "
|
2019-05-26 15:47:42 +00:00
|
|
|
|
"des objets qui ne sont pas des types Python fondamentaux, leurs "
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"représentations peuvent ne pas être acceptables en tant que telles par "
|
|
|
|
|
"l’interpréteur. Cela peut être le cas si des objets tels que des fichiers, "
|
|
|
|
|
"des interfaces de connexion (*sockets* en anglais) ou des classes sont "
|
|
|
|
|
"inclus, c’est aussi valable pour beaucoup d’autres types d’objets qui ne "
|
|
|
|
|
"peuvent être représentés sous forme littérale en Python."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:21
|
|
|
|
|
msgid ""
|
|
|
|
|
"The formatted representation keeps objects on a single line if it can, and "
|
|
|
|
|
"breaks them onto multiple lines if they don't fit within the allowed width. "
|
|
|
|
|
"Construct :class:`PrettyPrinter` objects explicitly if you need to adjust "
|
|
|
|
|
"the width constraint."
|
|
|
|
|
msgstr ""
|
2018-10-10 16:21:55 +00:00
|
|
|
|
"L’affichage formaté affiche tant que possible les objets sur une seule "
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"ligne, et les sépare sur plusieurs lignes s’ils dépassent la largeur "
|
|
|
|
|
"autorisée par l’interpréteur. Créez explicitement des objets :class:"
|
|
|
|
|
"`PrettyPrinter` si vous avez besoin de modifier les limites de largeur."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:26
|
|
|
|
|
msgid "Dictionaries are sorted by key before the display is computed."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Les dictionnaires sont classés par clés avant que l’affichage ne soit "
|
|
|
|
|
"calculé."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:28
|
|
|
|
|
msgid "The :mod:`pprint` module defines one class:"
|
2018-10-12 12:13:10 +00:00
|
|
|
|
msgstr "Le module :mod:`pprint` définit une seule classe : ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2018-12-24 13:20:55 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:38
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Construct a :class:`PrettyPrinter` instance. This constructor understands "
|
|
|
|
|
"several keyword parameters. An output stream may be set using the *stream* "
|
|
|
|
|
"keyword; the only method used on the stream object is the file protocol's :"
|
|
|
|
|
"meth:`write` method. If not specified, the :class:`PrettyPrinter` adopts "
|
|
|
|
|
"``sys.stdout``. The amount of indentation added for each recursive level is "
|
|
|
|
|
"specified by *indent*; the default is one. Other values can cause output to "
|
|
|
|
|
"look a little odd, but can make nesting easier to spot. The number of "
|
|
|
|
|
"levels which may be printed is controlled by *depth*; if the data structure "
|
|
|
|
|
"being printed is too deep, the next contained level is replaced by ``...``. "
|
|
|
|
|
"By default, there is no constraint on the depth of the objects being "
|
|
|
|
|
"formatted. The desired output width is constrained using the *width* "
|
|
|
|
|
"parameter; the default is 80 characters. If a structure cannot be formatted "
|
|
|
|
|
"within the constrained width, a best effort will be made. If *compact* is "
|
|
|
|
|
"false (the default) each item of a long sequence will be formatted on a "
|
|
|
|
|
"separate line. If *compact* is true, as many items as will fit within the "
|
2019-09-04 09:35:23 +00:00
|
|
|
|
"*width* will be formatted on each output line. If *sort_dicts* is true (the "
|
|
|
|
|
"default), dictionaries will be formatted with their keys sorted, otherwise "
|
|
|
|
|
"they will display in insertion order."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Crée une instance de :class:`PrettyPrinter`. Ce constructeur accepte "
|
2018-10-17 11:32:23 +00:00
|
|
|
|
"plusieurs paramètres nommés. Un flux de sortie peut être défini par le mot "
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"clé *stream*; la seule méthode utilisée sur l’objet *stream* est la méthode :"
|
|
|
|
|
"meth:`write` du protocole de fichiers. Si rien n’est spécifié, la classe :"
|
|
|
|
|
"class:`PrettyPrinter` utilise ``sys.stdout``. La taille de l’indentation "
|
|
|
|
|
"ajoutée à chaque niveau récursif est spécifiée par *indent*; la valeur par "
|
|
|
|
|
"défaut vaut ``1`. D’autres valeurs pourraient donner des résultats "
|
|
|
|
|
"surprenants, mais peuvent aider à mieux visualiser les imbrications. Le "
|
|
|
|
|
"nombre de niveaux qui peuvent être affichés est contrôlé par *depth*; si la "
|
|
|
|
|
"structure de données est trop profonde, le niveau suivant est remplacé par "
|
|
|
|
|
"``…``. Par défaut il n’y a pas de contraintes sur la profondeur des objets "
|
|
|
|
|
"formatés. Vous pouvez limiter la largeur de la sortie à l’aide du paramètre "
|
|
|
|
|
"*width*; la valeur par défaut est de 80 caractères. Si une structure ne peut "
|
|
|
|
|
"pas être formatée dans les limites de la largeur contrainte, le module fait "
|
|
|
|
|
"au mieux. SI *compact* est initialisé à *False* (la valeur par défaut), "
|
|
|
|
|
"chaque élément d’une longue séquence est formaté sur une ligne séparée. Si "
|
|
|
|
|
"*compact* est initialisé à *True*, tous les éléments qui peuvent tenir dans "
|
|
|
|
|
"la largeur définie sont formatés sur chaque ligne de sortie."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:57 ../Doc/library/pprint.rst:97
|
|
|
|
|
#: ../Doc/library/pprint.rst:125
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Added the *compact* parameter."
|
2018-10-10 16:21:55 +00:00
|
|
|
|
msgstr "Ajout du paramètre *compact*."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:60 ../Doc/library/pprint.rst:100
|
|
|
|
|
#: ../Doc/library/pprint.rst:128
|
|
|
|
|
#, fuzzy
|
|
|
|
|
msgid "Added the *sort_dicts* parameter."
|
|
|
|
|
msgstr "Ajout du paramètre *compact*."
|
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:88
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "The :mod:`pprint` module also provides several shortcut functions:"
|
|
|
|
|
msgstr ""
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"Le module :mod:`pprint` fournit aussi quelques fonctions de raccourcis ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:93
|
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return the formatted representation of *object* as a string. *indent*, "
|
2019-09-04 09:35:23 +00:00
|
|
|
|
"*width*, *depth*, *compact* and *sort_dicts* will be passed to the :class:"
|
|
|
|
|
"`PrettyPrinter` constructor as formatting parameters."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Renvoie une représentation formatée de *object* sous forme de chaine de "
|
|
|
|
|
"caractères. *indent*, *width*, *depth* et *compact* sont passés au "
|
2018-10-10 16:21:55 +00:00
|
|
|
|
"constructeur de :class:`PrettyPrinter` comme paramètres de formatage."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:106
|
|
|
|
|
msgid ""
|
|
|
|
|
"Prints the formatted representation of *object* followed by a newline. If "
|
|
|
|
|
"*sort_dicts* is false (the default), dictionaries will be displayed with "
|
|
|
|
|
"their keys in insertion order, otherwise the dict keys will be sorted. "
|
|
|
|
|
"*args* and *kwargs* will be passed to :func:`pprint` as formatting "
|
|
|
|
|
"parameters."
|
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
|
|
#: ../Doc/library/pprint.rst:118
|
|
|
|
|
#, fuzzy
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Prints the formatted representation of *object* on *stream*, followed by a "
|
|
|
|
|
"newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used "
|
|
|
|
|
"in the interactive interpreter instead of the :func:`print` function for "
|
|
|
|
|
"inspecting values (you can even reassign ``print = pprint.pprint`` for use "
|
2019-09-04 09:35:23 +00:00
|
|
|
|
"within a scope). *indent*, *width*, *depth*, *compact* and *sort_dicts* "
|
|
|
|
|
"will be passed to the :class:`PrettyPrinter` constructor as formatting "
|
|
|
|
|
"parameters."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"Affiche la représentation formatée de *object* sur *stream*, suivie d’un "
|
2018-10-20 10:32:58 +00:00
|
|
|
|
"retour à la ligne. Si *stream* vaut ``None``, ``sys.stdout`` est alors "
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"utilisé. Vous pouvez l’utiliser dans l’interpréteur interactif de Python au "
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"lieu de la fonction :func:`print` pour inspecter les valeurs (vous pouvez "
|
|
|
|
|
"même réassigner ``print = pprint.pprint`` pour une utilisation au sein de sa "
|
|
|
|
|
"portée). *indent*, *width*, *depth* et *compact* sont passés au constructeur "
|
|
|
|
|
"de classe :class:`PrettyPrinter` comme paramètres de formatage."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:147
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Determine if the formatted representation of *object* is \"readable,\" or "
|
|
|
|
|
"can be used to reconstruct the value using :func:`eval`. This always "
|
|
|
|
|
"returns ``False`` for recursive objects."
|
|
|
|
|
msgstr ""
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"Détermine si la représentation formatée de *object* est « lisible », ou s’il "
|
|
|
|
|
"peut être utilisé pour recomposer sa valeur en utilisant la fonction :func:"
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"`eval`. Cela renvoie toujours ``False`` pour les objets récursifs."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:157
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Determine if *object* requires a recursive representation."
|
2018-10-10 20:04:40 +00:00
|
|
|
|
msgstr "Détermine si *object* requiert une représentation récursive."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:160
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "One more support function is also defined:"
|
2019-06-10 08:48:16 +00:00
|
|
|
|
msgstr "Une dernière fonction de support est définie ainsi ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:164
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return a string representation of *object*, protected against recursive data "
|
|
|
|
|
"structures. If the representation of *object* exposes a recursive entry, "
|
|
|
|
|
"the recursive reference will be represented as ``<Recursion on typename with "
|
|
|
|
|
"id=number>``. The representation is not otherwise formatted."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Renvoie une représentation de *object* sous forme de chaîne de caractère, "
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"celle-ci est protégée contre les structures de données récursives. Si la "
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"représentation de *object* présente une entrée récursive, celle-ci sera "
|
2018-10-20 10:32:58 +00:00
|
|
|
|
"représentée telle que ``<Recursion on typename with id=number>``. Par "
|
|
|
|
|
"ailleurs, la représentation de l’objet n’est pas formatée."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:176
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "PrettyPrinter Objects"
|
2018-10-10 20:04:40 +00:00
|
|
|
|
msgstr "Les Objets PrettyPrinter"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:178
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ":class:`PrettyPrinter` instances have the following methods:"
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Les instances de la classe :class:`PrettyPrinter` ont les méthodes "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"suivantes ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:183
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Return the formatted representation of *object*. This takes into account "
|
|
|
|
|
"the options passed to the :class:`PrettyPrinter` constructor."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Renvoie la représentation formatée de *object*. Cela prend en compte les "
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"options passées au constructeur de la classe :class:`PrettyPrinter`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:189
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Print the formatted representation of *object* on the configured stream, "
|
|
|
|
|
"followed by a newline."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Affiche sur le flux configuré la représentation formatée de *object*, suivie "
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"d’une fin de ligne."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:192
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The following methods provide the implementations for the corresponding "
|
|
|
|
|
"functions of the same names. Using these methods on an instance is slightly "
|
|
|
|
|
"more efficient since new :class:`PrettyPrinter` objects don't need to be "
|
|
|
|
|
"created."
|
|
|
|
|
msgstr ""
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"Les méthodes suivantes fournissent les implémentations pour les fonctions "
|
|
|
|
|
"correspondantes de mêmes noms. L’utilisation de ces méthodes sur une "
|
|
|
|
|
"instance est légèrement plus efficace, car les nouveaux objets :class:"
|
|
|
|
|
"`PrettyPrinter` n’ont pas besoin d’être créés."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:202
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Determine if the formatted representation of the object is \"readable,\" or "
|
|
|
|
|
"can be used to reconstruct the value using :func:`eval`. Note that this "
|
|
|
|
|
"returns ``False`` for recursive objects. If the *depth* parameter of the :"
|
|
|
|
|
"class:`PrettyPrinter` is set and the object is deeper than allowed, this "
|
|
|
|
|
"returns ``False``."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Détermine si la représentation formatée de *object* est « lisible », ou si "
|
|
|
|
|
"elle peut être utilisée pour recomposer sa valeur en utilisant la fonction :"
|
|
|
|
|
"func:`eval`. Cela renvoie toujours ``False`` pour les objets récursifs. Si "
|
|
|
|
|
"le paramètre *depth* de la classe :class:`PrettyPrinter` est initialisé et "
|
|
|
|
|
"que l’objet est plus « profond » que permis, cela renvoie ``False``."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:211
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Determine if the object requires a recursive representation."
|
2018-10-10 20:04:40 +00:00
|
|
|
|
msgstr "Détermine si l’objet nécessite une représentation récursive."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:213
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"This method is provided as a hook to allow subclasses to modify the way "
|
|
|
|
|
"objects are converted to strings. The default implementation uses the "
|
|
|
|
|
"internals of the :func:`saferepr` implementation."
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"Cette méthode est fournie sous forme de point d’entrée ou méthode (à "
|
|
|
|
|
"déclenchement) automatique (*hook* en anglais) pour permettre aux sous-"
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"classes de modifier la façon dont les objets sont convertis en chaînes. "
|
|
|
|
|
"L’implémentation par défaut est celle de la fonction :func:`saferepr`."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:220
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Returns three values: the formatted version of *object* as a string, a flag "
|
|
|
|
|
"indicating whether the result is readable, and a flag indicating whether "
|
|
|
|
|
"recursion was detected. The first argument is the object to be presented. "
|
|
|
|
|
"The second is a dictionary which contains the :func:`id` of objects that are "
|
|
|
|
|
"part of the current presentation context (direct and indirect containers for "
|
|
|
|
|
"*object* that are affecting the presentation) as the keys; if an object "
|
|
|
|
|
"needs to be presented which is already represented in *context*, the third "
|
|
|
|
|
"return value should be ``True``. Recursive calls to the :meth:`.format` "
|
|
|
|
|
"method should add additional entries for containers to this dictionary. The "
|
|
|
|
|
"third argument, *maxlevels*, gives the requested limit to recursion; this "
|
|
|
|
|
"will be ``0`` if there is no requested limit. This argument should be "
|
|
|
|
|
"passed unmodified to recursive calls. The fourth argument, *level*, gives "
|
|
|
|
|
"the current level; recursive calls should be passed a value less than that "
|
|
|
|
|
"of the current call."
|
|
|
|
|
msgstr ""
|
2018-10-23 14:09:44 +00:00
|
|
|
|
"Renvoie trois valeurs : la version formatée de *object* sous forme de chaîne "
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"de caractères, une option indiquant si le résultat est « lisible », et une "
|
|
|
|
|
"option indiquant si une récursion a été détectée. Le premier argument est "
|
2018-10-20 10:32:58 +00:00
|
|
|
|
"l’objet à représenter. Le deuxième est un dictionnaire qui contient l'\\ :"
|
|
|
|
|
"func:`id` des objets (conteneurs directs ou indirects de *objet* qui "
|
|
|
|
|
"affectent sa représentation) qui font partie du contexte de représentation "
|
|
|
|
|
"courant tel que les clés; si un objet doit être représenté, mais l’a déjà "
|
|
|
|
|
"été dans ce contexte, le troisième argument renvoie ``True``. Des appels "
|
|
|
|
|
"récursifs à la méthode :meth:`.format` doivent ajouter des entrés "
|
|
|
|
|
"additionnelles aux conteneurs de ce dictionnaire. Le troisième argument "
|
|
|
|
|
"*maxlevels*, donne la limite maximale de récursivité; la valeur par défaut "
|
|
|
|
|
"est ``0``. Cet argument doit être passé non modifié pour des appels non "
|
|
|
|
|
"récursifs. Le quatrième argument, *level*, donne le niveau de récursivité "
|
|
|
|
|
"courant; les appels récursifs doivent être passés à une valeur inférieure à "
|
|
|
|
|
"celle de l’appel courant."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:238
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "Example"
|
|
|
|
|
msgstr "Exemple"
|
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:240
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"To demonstrate several uses of the :func:`pprint` function and its "
|
|
|
|
|
"parameters, let's fetch information about a project from `PyPI <https://pypi."
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"org>`_::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgstr ""
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"Pour illustrer quelques cas pratiques de l’utilisation de la fonction :func:"
|
2018-10-20 10:32:58 +00:00
|
|
|
|
"`pprint` et de ses paramètres, allons chercher des informations sur un "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"projet `PyPI <https://pypi.org>`_ ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:249
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid "In its basic form, :func:`pprint` shows the whole object::"
|
|
|
|
|
msgstr ""
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"Dans sa forme basique, la fonction :func:`pprint` affiche l’intégralité de "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"l’objet ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:305
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
|
|
|
|
|
"contents)::"
|
|
|
|
|
msgstr ""
|
2018-10-10 20:04:40 +00:00
|
|
|
|
"Le résultat peut être limité à une certaine profondeur en initialisant "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"*depth*. ( ``…`` est utilisé pour des contenus plus « profonds ») ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
2019-09-04 09:35:23 +00:00
|
|
|
|
#: ../Doc/library/pprint.rst:351
|
2016-10-30 09:46:26 +00:00
|
|
|
|
msgid ""
|
|
|
|
|
"Additionally, maximum character *width* can be suggested. If a long object "
|
|
|
|
|
"cannot be split, the specified width will be exceeded::"
|
|
|
|
|
msgstr ""
|
2018-10-12 12:13:10 +00:00
|
|
|
|
"De plus, une valeur maximale de caractères sur une ligne peut être définie "
|
|
|
|
|
"en initialisant le paramètre *width*. Si un long objet ne peut être scindé, "
|
2019-06-10 08:48:16 +00:00
|
|
|
|
"la valeur donnée à *width* sera outrepassée ::"
|