Questions about no more nested imports
Michael Hudson
mwh21 at cam.ac.uk
Sun Mar 11 14:44:13 EST 2001
whisper at oz.net (Dave LeBlanc) writes:
> I'm a bit confused by this.
| <- the right end the wrond end -> |
+----------------------------------------------------------+
| the stick |
*----------------------------------------------------------+
^
you're about here
> It appears that if this is enforced, one can no longer dynamically
> load extensions/whatever dynamically and all imports must be done at
> the top of a module prior to anticipated use - whether used or
> not. If this is true, then load times for python apps could go up
> drastically.
The only thing that's getting banned is "from blah import *" and
"exec" without "in" in a set of fairly restricted circumstances.
Read the PEP:
http://python.sourceforge.net/peps/pep-0227.html
(specifically the section "Backwards compatibility").
Cheers,
M.
--
please realize that the Common Lisp community is more than 40
years old. collectively, the community has already been where
every clueless newbie will be going for the next three years.
so relax, please. -- Erik Naggum, comp.lang.lisp
More information about the Python-list
mailing list