Shutdown hook
Steve Juranich
sjuranic at gmail.com
Wed Nov 16 17:21:41 EST 2005
On 15 Nov 2005 14:45:27 -0800, Steve <steve.morin at gmail.com> wrote:
> Does any one know if python has the ability to run a shutdown hook.
Look at the "atexit" module.
barbet (~)$ pydoc atexit.register
Help on function register in atexit:
atexit.register = register(func, *targs, **kargs)
register a function to be executed upon normal program termination
func - function to be called at exit
targs - optional arguments to pass to func
kargs - optional keyword arguments to pass to func
--
Steve Juranich
Tucson, AZ
USA
More information about the Python-list
mailing list