[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/