Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/pprint.rst

    r2 r391  
    1 
    21:mod:`pprint` --- Data pretty printer
    32=====================================
     
    87.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
    98
     9**Source code:** :source:`Lib/pprint.py`
     10
     11--------------
    1012
    1113The :mod:`pprint` module provides a capability to "pretty-print" arbitrary
     
    2931   Added support for :class:`set` and :class:`frozenset`.
    3032
     33
    3134The :mod:`pprint` module defines one class:
    3235
     
    3437
    3538
    36 .. class:: PrettyPrinter(...)
     39.. class:: PrettyPrinter(indent=1, width=80, depth=None, stream=None)
    3740
    3841   Construct a :class:`PrettyPrinter` instance.  This constructor understands
     
    7174The :class:`PrettyPrinter` class supports several derivative functions:
    7275
    73 .. Now the derivative functions:
    74 
    75 .. function:: pformat(object[, indent[, width[, depth]]])
     76.. function:: pformat(object, indent=1, width=80, depth=None)
    7677
    7778   Return the formatted representation of *object* as a string.  *indent*, *width*
     
    8384
    8485
    85 .. function:: pprint(object[, stream[, indent[, width[, depth]]]])
     86.. function:: pprint(object, stream=None, indent=1, width=80, depth=None)
    8687
    8788   Prints the formatted representation of *object* on *stream*, followed by a
    88    newline.  If *stream* is omitted, ``sys.stdout`` is used.  This may be used in
     89   newline.  If *stream* is ``None``, ``sys.stdout`` is used.  This may be used in
    8990   the interactive interpreter instead of a :keyword:`print` statement for
    9091   inspecting values.    *indent*, *width* and *depth* will be passed to the
     
    204205--------------
    205206
    206 This example demonstrates several uses of the :func:`pprint` function and its parameters.
     207This example demonstrates several uses of the :func:`pprint` function and its
     208parameters.
    207209
    208210   >>> import pprint
Note: See TracChangeset for help on using the changeset viewer.