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/008616.html below:

[Patches] [Patch #101234] Allow all assignment expressions after 'import something as'

[Python-Dev] Re: [Patches] [Patch #101234] Allow all assignment expressions after 'import something as' [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/)



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