C Extended module init/cleanup

Carl J. Van Arsdall cvanarsdall at mvista.com
Mon Jan 23 15:54:32 EST 2006


I'm extending Python with C, it seems as though initialization is easy 
enough with an init<moduleName>() 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 is unloaded some cleanup is run?

Thanks,

carl


-- 

Carl J. Van Arsdall
cvanarsdall at mvista.com
Build and Release
MontaVista Software




More information about the Python-list mailing list