Dynamically reloading extension modules

Timothy Grant tjg at exceptionalminds.com
Wed Mar 21 17:59:01 EST 2001


On Wed, Mar 21, 2001 at 02:01:44PM -0800, Ken Seehof wrote:
> Has anyone found a technique for dynamically unloading and
> reloading an extension module?  I want to be able to modify,
> build, and reload an extension module from within my program.
> 
> Unfortunately python apparently doesn't use FreeLibrary when
> a module object is released.  Maybe I can do some kind of
> hack to call FreeLibrary explicitly.  Is there a way to do this that
> is portable?

I'm not sure I know what your asking, but does

reload(modulename) fit the bill?


-- 
Stand Fast,
    tjg.

Timothy Grant                         tjg at exceptionalminds.com
Red Hat Certified Engineer            www.exceptionalminds.com
Avalon Technology Group, Inc.         <><       (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted:  64 days  3:14 hours ago<<




More information about the Python-list mailing list