[Python-ideas] pprint in python 3000

Brett Cannon brett at python.org
Sat Aug 11 01:18:05 CEST 2007


On 8/10/07, wrobell <wrobell at pld-linux.org> wrote:
> hi,
>
> sometimes, when using print, i find pprint (pretty-print) module very
> useful. but then one has to import pprint module and use completely
> different function to dump structure to screen.
>

But the import is minimal.  Plus with 'print' becoming a function you
could easily replace the built-in 'print' with a pretty-print
implementation application wide.

> therefore i am wondering if it is possible to integrate pprint module
> functionality on print level function (python 3000) with 'pretty'
> parameter. of course, it opens some can of worms... but maybe it is worth
> considering?

I have never felt the need for this, so I don't feel like opening the
can of worms.  =)

-Brett



More information about the Python-ideas mailing list