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) ? > > http://codespeak.net/py/current/doc/misc.html#the-py-std-hook > > 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. -- http://mail.python.org/mailman/listinfo/python-list