PEP 328: Imports: Multi-Line and Absolute/Relative
AdSR
artur_spruce at yahoo.com
Mon Mar 22 14:08:45 EST 2004
Josiah Carlson <jcarlson at nospam.uci.edu> wrote...
> from HOW.MODULE import NAMES as RENAME
> import HOW.MODULE.NAMES as RENAME
>
> Where HOW is of the form:
> -<INTEGER>[.PACKAGE1[.PACKAGE2[...]]]
> [PACKAGE1[.PACKAGE2[...]]]
+1. (I know I'm late :)
> [snip]
> I think such behavior is clear enough magical syntax, what do others think?
Very readable, doesn't use any new magical names - and numbers have no
other use in import statements anyway. There is something different in
it, in a positive sense.
I'll miss the current behavior of import, though. Somehow it feels
more intuitive to me. Oh, well, practicality beats purity - or
personal taste...
Cheers,
AdSR
More information about the Python-list
mailing list