Installation
$ [sudo] pip install exit
Features
- better than
atexit.register
-
SIGKILL
,SIGSTOP
oros._exit()
not supported
Examples
>>> import exit
>>> def on_exit():
print("goodbye world")
>>> exit.register(on_exit)
register function to be executed at termination
pip install exit==2020.12.3
$ [sudo] pip install exit
atexit.register
SIGKILL
, SIGSTOP
or os._exit()
not supported>>> import exit
>>> def on_exit():
print("goodbye world")
>>> exit.register(on_exit)