[Python-Dev] Assignment to __class__ of module? (Autoloading? (Making Queue.Queue easier to use))
Josiah Carlson
jcarlson at uci.edu
Thu Oct 13 20:13:23 CEST 2005
Eyal Lotem <eyal.lotem at gmail.com> wrote:
> Why not lazily import modules by importing them when they are needed
> (i.e inside functions), and not in the top-level module scope?
Because then it wouldn't be automatic.
The earlier portion of this discussion came from...
import module
#module.foo does not reference a module
module.foo
#now module.foo references a module
The discussion is about how we can get that kind of behavior.
- Josiah
More information about the Python-Dev
mailing list