Running a function before exit (Python)

Posted by dan on Stack Overflow See other posts from Stack Overflow or by dan
Published on 2009-05-30T20:22:53Z Indexed on 2010/03/21 10:41 UTC
Read the original article Hit count: 138

Filed under:
|
|
|
|

Is there any way to run one last command before a running Python script is stopped by being killed by some other script, keyboard interrupt etc.

Thanks for your help!

© Stack Overflow or respective owner

Related posts about python

Related posts about interrupt