| pprint | index /usr/lib/python2.2/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.
| Modules | ||||||
| ||||||
| Classes | ||||||||||
| ||||||||||
| Functions | ||
| ||
| Data | ||
| __all__ = ['pprint', 'pformat', 'isreadable', 'isrecursive', 'saferepr', 'PrettyPrinter'] __file__ = '/usr/lib/python2.2/pprint.pyc' __name__ = 'pprint' _sys_modules = {'BaseHTTPServer': <module 'BaseHTTPServer' from '/usr/lib/python2.2/BaseHTTPServer.pyc'>, 'Bastion': <module 'Bastion' from '/usr/lib/python2.2/Bastion.pyc'>, 'CGIHTTPServer': <module 'CGIHTTPServer' from '/usr/lib/python2.2/CGIHTTPServer.pyc'>, 'ConfigParser': <module 'ConfigParser' from '/usr/lib/python2.2/ConfigParser.pyc'>, 'Cookie': <module 'Cookie' from '/usr/lib/python2.2/Cookie.pyc'>, 'FCNTL': <module 'FCNTL' from '/usr/lib/python2.2/FCNTL.pyc'>, 'HTMLParser': <module 'HTMLParser' from '/usr/lib/python2.2/HTMLParser.pyc'>, 'MimeWriter': <module 'MimeWriter' from '/usr/lib/python2.2/MimeWriter.pyc'>, 'SimpleHTTPServer': <module 'SimpleHTTPServer' from '/usr/lib/python2.2/SimpleHTTPServer.pyc'>, 'SocketServer': <module 'SocketServer' from '/usr/lib/python2.2/SocketServer.pyc'>, ...} | ||