[Python-Dev] Assignment to __class__ of module? (Autoloading? (Making Queue.Queue easier to use))
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...
#module.foo does not reference a module
#now module.foo references a module
The discussion is about how we can get that kind of behavior.
More information about the Python-Dev