A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/012366.html below:

[Python-Dev] Re: from ... import * ([Python-checkins] CVS: python/dist/src/Python compile.c,2.153,2.154)

[Python-Dev] Re: from ... import * ([Python-checkins] CVS: python/dist/src/Python compile.c,2.153,2.154) [Python-Dev] Re: from ... import * ([Python-checkins] CVS: python/dist/src/Python compile.c,2.153,2.154)M.-A. Lemburg mal@lemburg.com
Wed, 31 Jan 2001 12:56:12 +0100
> Update of /cvsroot/python/python/dist/src/Python
> In directory usw-pr-cvs1:/tmp/cvs-serv17061/Python
> 
> Modified Files:
>         compile.c 
> Log Message:
> Enforce two illegal import statements that were outlawed in the
> reference manual but not checked: Names bound by import statemants may
> not occur in global statements in the same scope. The from ... import *
> form may only occur in a module scope.
> 
> I guess these changes could break code, but the reference manual
> warned about them.

Jeremy, your code breaks all uses of "from package import submodule"
inside packages.

Try distutils for example or setup.py....

-- 
Marc-Andre Lemburg
______________________________________________________________________
Company:                                        http://www.egenix.com/
Consulting:                                    http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



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