Module: Destructor/Cleanup Code/etc

Dylan Shell dshell at robotics.usc.edu
Sun Oct 19 05:30:51 EDT 2003


How do I register a clean up function for a module written in C? While
I can find plenty of documentation for the "init<module_name>"
function... I don't see a single reference on a "done<module_name>" or
something analogous.

Obviously if I can't get code to run in closing time, then the
usefulness is far less (I mean, surely there is a recognition that
some modules will need to clean up after themselves.)

Dylan.




More information about the Python-list mailing list