pythonic way to optimize access to imported value?
Greg Ewing
see_reply_address at something.invalid
Sun Nov 17 21:49:10 EST 2002
Bengt Richter wrote:
> I assumed that it is possible to release all references to an imported module, so that
> the garbage collector can eliminate it from memory
That won't happen -- the module remains in the global
list of modules maintained by the interpreter, even if
all other references to it go away.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list