pprint
Rodrick Brown
rodrick.brown at gmail.com
Wed Jun 9 16:42:33 EDT 2010
On Wed, Jun 9, 2010 at 5:01 AM, madhuri vio <madhuri.vio at gmail.com> wrote:
> sir what is the function of pprint???
> could you please help me out with that
>
> --
> madhuri :)
>
> rbrown at laptop:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> print pprint.__doc__
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.
>>>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
[ Rodrick R. Brown ]
http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100609/a2d92bcd/attachment-0001.html>
More information about the Python-list
mailing list