diff options
author | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 +0000 |
commit | 6911e3ce3f72af759908b869b73391ea00d328e2 (patch) | |
tree | 5d4ff6070cb3f0f46f0a31ee4805b41053a06b48 /Doc/library/pprint.rst | |
parent | Add "print" command to pdb, "print s" previously invoked the print statement. (diff) | |
download | cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.gz cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.bz2 cpython-6911e3ce3f72af759908b869b73391ea00d328e2.zip |
Convert all print statements in the docs.
Diffstat (limited to 'Doc/library/pprint.rst')
-rw-r--r-- | Doc/library/pprint.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index 3703c1cb3d7..d00caba4e33 100644 --- a/Doc/library/pprint.rst +++ b/Doc/library/pprint.rst @@ -85,9 +85,10 @@ The :class:`PrettyPrinter` class supports several derivative functions: .. function:: pprint(object[, stream[, indent[, width[, depth]]]]) Prints the formatted representation of *object* on *stream*, followed by a - newline. If *stream* is omitted, ``sys.stdout`` is used. This may be used in - the interactive interpreter instead of a :keyword:`print` statement for - inspecting values. *indent*, *width* and *depth* will be passed to the + newline. If *stream* is omitted, ``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* and *depth* will be passed to the :class:`PrettyPrinter` constructor as formatting parameters. :: >>> stuff = sys.path[:] |