unloading imported modules

Chris Liechti cliechti at gmx.net
Sat Jul 20 15:23:57 EDT 2002


xeon at dacreations.cjb.net (xeon) wrote in 
news:c21a43ff.0207201104.634f353b at posting.google.com:
> Is it possible in python intepreter to unload imported modules? or are
> there ways to refresh the loaded functions if ever the module is
> updated, other than restarting the intepreter?

you can use "reload(modulename)" to refresh it.

maybe autoreloading interests you too. here comes the little bit log 
URL.... (one line, blah balh ;-)

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-
8&th=2ae8aac3beeb9859&seekm=mailman.1005899002.5050.python-
list%40python.org&frame=off

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list