| pprint | index /usr/lib/python1.5/pprint.py |
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.sydout].
saferepr()
Generate a 'standard' repr()-like value, but protect against recursive
data structures.
| Classes | |||||||||||||||||||
| |||||||||||||||||||
| Functions | |||
| |||
| Constants | |||
DictType = <type 'dictionary'> ListType = <type 'list'> TupleType = <type 'tuple'> | |||