Printing long lines in PythonWin (was Re: Big bug with PythonWin)

Sheila King sheila at spamcop.net
Mon May 7 01:26:43 EDT 2001


On Sun, 06 May 2001 23:09:32 -0300, Carlos Ribeiro <cribeiro at mail.inet.com.br>
wrote in comp.lang.python in article
<mailman.989201290.6439.python-list at python.org>:

:I'm getting used to a little hack:
:
: >>> import pprint
: >>> p = pprint.pprint   # shorthand from pretty printer
...<snipped>...
:It makes easy to get nicely formatted output.

Thanks for the tip. I tried the pretty print module once, when I was very new to
Python, and couldn't figure out how to use it correctly. Your example helped.

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list