[Python-Dev] Re: PEP 328 -- relative and multi-line import
Guido van Rossum
guido at python.org
Mon Apr 12 10:55:10 EDT 2004
> What is the rationale given for not allowing:
>
> import .moduleY
For all other forms of import, after
import XXX.YYY.ZZZ
then
XXX.YYY.ZZZ
is usable in an expression. (Very different from Java!) But
.moduleY
is not usable in an expression.
(This might be worth adding to the PEP.)
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list