cleanup in sys.excepthook?

akonsu akonsu at gmail.com
Wed Sep 23 17:28:39 CEST 2009


hello,

my script creates files that i need to delete if an exception is
thrown.

is this a good pythonic style to do this kind of cleanup in
sys.excepthook instead of inside except clause of a try block?

konstantin



More information about the Python-list mailing list