[Python-Dev] Re: Relative import

Paul Moore pf_moore at yahoo.co.uk
Sat Dec 20 07:02:20 EST 2003

Jack Diederich <jack at performancedrivers.com> writes:

> I like syntax that reads most important left-to-right, so what about
> from MODULE import NAMES as RENAME searching HOW
> or
> import NAMES as RENAME from MODULE searching HOW

I like this. It feels much more Pythonic than the various suggestions
around magic dots in the name. It's explicit, easy to understand, and
easy to extend (extra possibilities for HOW could be added with little

This signature intentionally left blank

More information about the Python-Dev mailing list