A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008460.html below:

[Python-Dev] 'import as'

[Python-Dev] 'import as' [Python-Dev] 'import as'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 ..."?



- Gordon



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4