atexit

atexit.py - allow programmer to define multiple exit functions to be executed upon normal program termination.

One public function, register, is defined.

Functions

register(func, *targs, **kargs) register a function to be executed upon normal program termination