Is there a way to hook into module destruction?

Gerald Kaszuba gerald.kaszuba at gmail.com
Sun Jun 17 02:52:01 EDT 2007


> I doubt python calls __del__ when unloading module... and plus, I
> don't really think python does module unloading though. del module

Ah! Apologies... I mis-read the question.

Unloading or at least destroying the reference to a loaded module, you
could go for "del module_name"?

--
Gerald Kaszuba
http://geraldkaszuba.com




More information about the Python-list mailing list