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

213 lines
8.0 KiB
Plaintext
Raw 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
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
2018-06-10 09:32:30 +00:00
"POT-Creation-Date: 2018-06-10 11:27+0200\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.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"
#: ../Doc/library/pprint.rst:2
msgid ":mod:`pprint` --- Data pretty printer"
msgstr ""
#: ../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 ""
#: ../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 ""
#: ../Doc/library/pprint.rst:26
msgid "Dictionaries are sorted by key before the display is computed."
msgstr ""
#: ../Doc/library/pprint.rst:28
msgid "The :mod:`pprint` module defines one class:"
msgstr ""
#: ../Doc/library/pprint.rst:36
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 "
"*width* will be formatted on each output line."
msgstr ""
#: ../Doc/library/pprint.rst:53 ../Doc/library/pprint.rst:88
#: ../Doc/library/pprint.rst:102
msgid "Added the *compact* parameter."
msgstr ""
#: ../Doc/library/pprint.rst:80
msgid "The :mod:`pprint` module also provides several shortcut functions:"
msgstr ""
#: ../Doc/library/pprint.rst:84
msgid ""
"Return the formatted representation of *object* as a string. *indent*, "
"*width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` "
"constructor as formatting parameters."
msgstr ""
#: ../Doc/library/pprint.rst:95
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 "
"within a scope). *indent*, *width*, *depth* and *compact* will be passed to "
"the :class:`PrettyPrinter` constructor as formatting parameters."
msgstr ""
#: ../Doc/library/pprint.rst:121
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 ""
#: ../Doc/library/pprint.rst:131
msgid "Determine if *object* requires a recursive representation."
msgstr ""
#: ../Doc/library/pprint.rst:134
msgid "One more support function is also defined:"
msgstr ""
#: ../Doc/library/pprint.rst:138
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 ""
#: ../Doc/library/pprint.rst:150
msgid "PrettyPrinter Objects"
msgstr ""
#: ../Doc/library/pprint.rst:152
msgid ":class:`PrettyPrinter` instances have the following methods:"
msgstr ""
#: ../Doc/library/pprint.rst:157
msgid ""
"Return the formatted representation of *object*. This takes into account "
"the options passed to the :class:`PrettyPrinter` constructor."
msgstr ""
#: ../Doc/library/pprint.rst:163
msgid ""
"Print the formatted representation of *object* on the configured stream, "
"followed by a newline."
msgstr ""
#: ../Doc/library/pprint.rst:166
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 ""
#: ../Doc/library/pprint.rst:176
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 ""
#: ../Doc/library/pprint.rst:185
msgid "Determine if the object requires a recursive representation."
msgstr ""
#: ../Doc/library/pprint.rst:187
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 ""
#: ../Doc/library/pprint.rst:194
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 ""
#: ../Doc/library/pprint.rst:212
msgid "Example"
msgstr "Exemple"
#: ../Doc/library/pprint.rst:214
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-06-10 09:32:30 +00:00
"org>`_::"
2016-10-30 09:46:26 +00:00
msgstr ""
#: ../Doc/library/pprint.rst:225
msgid "In its basic form, :func:`pprint` shows the whole object::"
msgstr ""
#: ../Doc/library/pprint.rst:279
msgid ""
"The result can be limited to a certain *depth* (ellipsis is used for deeper "
"contents)::"
msgstr ""
#: ../Doc/library/pprint.rst:313
msgid ""
"Additionally, maximum character *width* can be suggested. If a long object "
"cannot be split, the specified width will be exceeded::"
msgstr ""