PyDocs

Data Types

pprint

Support to pretty-print lists, tuples, & dictionaries recursively.

Very simple, but useful, especially in debugging data structures.

Classes
-------

PrettyPrinter()
    Handle pretty-printing operations onto a stream using a configured
    set of formatting parameters.

Functions
---------

pformat()
    Format a Python object into a pretty-printed representation.

pprint()
    Pretty-print a Python object to a stream [default is sys.stdout].

saferepr()
    Generate a 'standard' repr()-like value, but protect against recursive
    data structures.
Symbols in pprint

i

isreadable
Determine if saferepr(object) is readable by eval().
isrecursive
Determine if object requires a recursive representation.

p

pformat
Format a Python object into a pretty-printed representation.
pp
Pretty-print a Python object
pprint
Pretty-print a Python object to a stream [default is sys.stdout].
PrettyPrinter
Construct a PrettyPrinter instance.

s

saferepr
Version of repr() which can handle recursive data structures.