register function to be executed at termination
Project description
Install
$ [sudo] pip install exit
Features
- better than
atexit.register
SIGKILL
,SIGSTOP
oros._exit()
not supported- based on grodola.blogspot.com/2016/02/how-to-always-execute-exit-functions-in-py.html
Examples
>>> import exit
>>> def on_exit():
print("goodbye world")
>>> exit.register(on_exit)
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exit-0.0.2.tar.gz
(2.7 kB
view hashes)