[Python-Dev] 'import as' (original) (raw)

Gordon McMillan gmcm@hypernet.com
Thu, 17 Aug 2000 22:07:04 -0400


Thomas Wouters wrote:

The other issue is the change in semantics for 'from-import'.

Um, maybe I'm not seeing something, but isn't the effect of "import goom.bah as snarf" the same as "from goom import bah as snarf"? Both forms mean that we don't end up looking for (the aliased) bah in another namespace, (thus both forms fall prey to the circular import problem).

Why not just disallow "from ... import ... as ..."?