Callbacks on program exiting/aborting

Grant Edwards invalid at invalid.invalid
Thu Mar 3 12:32:05 EST 2011


On 2011-03-03, Pengcheng Chen <pengcheng.chen at gmail.com> wrote:

> What callback mechanisms can we use in Python? We have some device
> drivers are in Python and sometimes they crash. I'd like to do some
> cleanup before program abort/crash. Any suggestions?

http://docs.python.org/library/atexit.html

-- 
Grant Edwards               grant.b.edwards        Yow! Yes, but will I
                                  at               see the EASTER BUNNY in
                              gmail.com            skintight leather at an
                                                   IRON MAIDEN concert?



More information about the Python-list mailing list