On 2011-03-03, Pengcheng Chen 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
Dear folks,
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?
Thanks so much!
Pengcheng
--
http://mail.python.org/mailman/listinfo/python-list