On 2011-03-03, Pengcheng Chen <pengcheng.c...@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?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to