any plans to make pprint() a builtin?

John Salerno johnjsal at
Sun May 14 20:36:16 CEST 2006

Kent Johnson wrote:
> Duncan Booth wrote:
>> 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)
> Would you settle for
> import py
> py.std.pprint.pprint(x) ?
> Kent

Interesting, but that could start to get a little too messy I think. I'd 
rather just have the 'authentic' code in my program (i.e. pprint.pprint) 
instead of the py.std prefix as well.

It's a good point not to pollute the builtin namespace with too much, so 
I think I'd rather just import pprint when needed instead of using the 
py.std call.

More information about the Python-list mailing list