Module destructor function?

Joakim Ziegler joakim at login1.styx.net
Thu Dec 30 08:15:39 EST 1999


I'm writing a Python module in C. How can I make sure a destructor function
gets called when the module is unloaded (similar to init<modulename> but on
unload)? I need to deallocate a couple of things that I allocate in the
module init function.

-- 
Joakim Ziegler - styx research director - joakim at styx.net
FIX sysop - FIXmud admin - FIDEL & Conglomerate developer



More information about the Python-list mailing list