void hi(void) __attribute__((constructor));
void hi(void) { printf("Hi!\n");}
void bye(void) __attribute__((destructor));
void bye(void) { printf("Bye!\n");}
When I run in the interpreter:
Hi!>>import spam
Notice that the destructor isn't called. How can I force python>>del spam
to dlclose() the library and ensure that my destructors get called?
--
Bill Pursell