[Python-Dev] atexit missing an unregister method

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 27 01:53:07 CEST 2005


Nick Jacobson wrote:

> But while you can mark functions to be called with the 'register' 
> method, there's no 'unregister' method to remove them from the stack of 
> functions to be called.

You can always build your own mechanism for managing
cleanup functions however you want, and register a
single atexit() hander to invoke it. I don't think
there's any need to mess with the way atexit()
currently works.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list