any plans to make pprint() a builtin?

Duncan Booth duncan.booth at invalid.invalid
Sun May 14 09:22:52 EDT 2006


John Salerno wrote:

> Just wondering if this will ever happen, maybe in 3.0 when print becomes 
> a function too? It would be a nice option to have it available without 
> importing it every time, but maybe making it a builtin violates some 
> kind of pythonic ideal?

There are so many things which *could* be builtins, and it really is better 
not to pollute the global namespace with more than absolutely necessary. 

Personally I'd just like to see 'python' a builtin shorthand for importing 
a name you aren't going to use much
 e.g.

    python.pprint.pprint(x)



More information about the Python-list mailing list