<br><br><div class="gmail_quote">On Wed, Jun 9, 2010 at 5:01 AM, madhuri vio <span dir="ltr"><<a href="mailto:madhuri.vio@gmail.com">madhuri.vio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
sir what is the function of pprint???<br>could you please help me out with that<br clear="all"><br>-- <br><font color="#888888">madhuri :)<br><br></font></blockquote>rbrown@laptop:~$ python<br>Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15) <br>
[GCC 4.4.1] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import pprint<br>>>> print pprint.__doc__<br>Support to pretty-print lists, tuples, & dictionaries recursively.<br>
<br>Very simple, but useful, especially in debugging data structures.<br><br>Classes<br>-------<br><br>PrettyPrinter()<br>    Handle pretty-printing operations onto a stream using a configured<br>    set of formatting parameters.<br>
<br>Functions<br>---------<br><br>pformat()<br>    Format a Python object into a pretty-printed representation.<br><br>pprint()<br>    Pretty-print a Python object to a stream [default is sys.stdout].<br><br>saferepr()<br>
    Generate a 'standard' repr()-like value, but protect against recursive<br>    data structures.<br>>>> <br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888">
</font><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>[ Rodrick R. Brown ]  <br><a href="http://www.rodrickbrown.com">http://www.rodrickbrown.com</a> <a href="http://www.linkedin.com/in/rodrickbrown">http://www.linkedin.com/in/rodrickbrown</a><br>