Lines Matching refs:pprint
1 :mod:`pprint` --- Data pretty printer
4 .. module:: pprint
9 **Source code:** :source:`Lib/pprint.py`
13 The :mod:`pprint` module provides a capability to "pretty-print" arbitrary
34 The :mod:`pprint` module defines one class:
57 >>> import pprint
60 >>> pp = pprint.PrettyPrinter(indent=4)
61 >>> pp.pprint(stuff)
70 >>> pp = pprint.PrettyPrinter(depth=6)
71 >>> pp.pprint(tup)
86 .. function:: pprint(object, stream=None, indent=1, width=80, depth=None)
94 >>> import pprint
97 >>> pprint.pprint(stuff)
117 >>> pprint.isreadable(stuff)
135 >>> pprint.saferepr(stuff)
153 .. method:: PrettyPrinter.pprint(object)
204 pprint Example
207 This example demonstrates several uses of the :func:`pprint` function and its
210 >>> import pprint
214 >>> pprint.pprint(stuff)
222 >>> pprint.pprint(stuff, depth=3)
227 >>> pprint.pprint(stuff, width=60)