PEP 328: Imports: Multi-Line and Absolute/Relative
artur_spruce at yahoo.com
Mon Mar 22 20:08:45 CET 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:
+1. (I know I'm late :)
> 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
More information about the Python-list