unload imported DLL possible?

Yakov Markovitch markovitch at iso.ru
Tue Aug 29 09:57:15 EDT 2000



Robert Kiendl wrote:
> 
> I'am often importing C++-writen DLL's.
> 
> Often debug-changes in the DLL are necessary, while it would be
> desireable to have the python-machine standing with lots of fingered
> woodpile in it.
> 
> One possibilty is to work with numbered DLLs ... consecutively importing
> them and have them appearing under a constant alias.
> 
> But many times I asked me, if python supports unloading a DLL if no more
> references to the DLLs funcs are present?
> 
> -robert

Unfortunately, Python's import mechanism simply doesn't support
extension unloading. I.e. extension module once loaded will never be
unloaded until program's end, though, of course, its dictionary
eventually will be cleared (during interpreter's finalisation).

Yakov Markovitch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: markovitch.vcf
Type: text/x-vcard
Size: 166 bytes
Desc: Card for Yakov Markovitch
URL: <http://mail.python.org/pipermail/python-list/attachments/20000829/1fcf9c89/attachment.vcf>


More information about the Python-list mailing list