Printing long lines in PythonWin (was Re: Big bug with PythonWin)
Michael Hudson
mwh at python.net
Tue May 8 11:30:09 EDT 2001
Carlos Ribeiro <cribeiro at mail.inet.com.br> writes:
> At 09:13 08/05/01 +0000, Duncan Booth wrote:
> >don't forget in Python 2.1 you can do:
> > >>> import sys, pprint
> > >>> sys.displayhook = pprint.pprint
> > >>> globals()
> >{'__builtins__': <module '__builtin__' (built-in)>,
> > '__doc__': None,
> > '__name__': '__main__',
> > 'pprint': <module 'pprint' from 'd:\python21\lib\pprint.pyc'>,
> > 'sys': <module 'sys' (built-in)>}
>
> And better yet, you can do it in your site.py module :-) This one deserves
> a recipe :-)
You should probably rig it so that __builtin__._ gets set too.
Cheers,
M.
--
FORD: Just pust the fish in your ear, come on, it's only a
little one.
ARTHUR: Uuuuuuuuggh!
-- The Hitch-Hikers Guide to the Galaxy, Episode 1
More information about the Python-list
mailing list