Considering that the current:

import pprint
pprint.pprint(x)

is hardly lengthy, I can't see how either of the alternatives proposed
are any better.

> python.pprint.pprint(x)

6 characters shorter, but considerably more keystrokes if you are using
pprint more than once. Is it worth adding the 'python' builtin to save
an import statement?

> import py
> py.std.pprint.pprint(x)

Longer, messy, and what's the actual point? Wouldn't:

import pprint as pp
pp.pprint(x)

be better, standard *and* shorter?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to