> Can C extended python modules provide any kind module destructor, so
> that whenever the module is unloaded some cleanup is run?
I've needed the same thing before but couldn't find it. AFAIK, the best
you can do is register an exit function that will be called when python
exits. Here is a sa
I'm extending Python with C, it seems as though initialization is easy
enough with an init() function that all C extended python
modules must provide that can serve as a sort of "module constructor".
Can C extended python modules provide any kind module destructor, so
that whenever the module i