[Python-Dev] Re: PEP 328 -- relative and multi-line import (original) (raw)
Aahz aahz at pythoncraft.com
Sat Apr 3 12:12:48 EST 2004
- Previous message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Next message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Apr 03, 2004, Scott David Daniels wrote:
One more (possibly unclear) case to consider: import . as package Is this a way to name your parent package?
Nope. All uses of relative imports require from <something> import
(I think the PEP makes that clear). You could, however, do
from ... import package [as foo]if Guido permits it; I want a Pronouncement on that before adding it to the PEP.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"usenet imitates usenet" --Darkhawk
- Previous message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Next message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]