[Python-Dev] Re: [Patches] [Patch #101234] Allow all assignment expressions after 'import something as'
Guido van Rossum
guido@beopen.com
Sun, 20 Aug 2000 23:37:46 -0500
> > Summary: Allow all assignment expressions after 'import something as'
-1. Hypergeneralization.
By the way, notice that
import foo.bar
places 'foo' in the current namespace, after ensuring that 'foo.bar'
is defined.
What should
import foo.bar as spam
assign to spam? I hope foo.bar, not foo.
I note that the CVS version doesn't support this latter syntax at all;
it should be fixed, even though the same effect can be has with
from foo import bar as spam
--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)