How to run one last function before getting killed in 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 11:11 UTC
Read the original article Hit count: 285

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