How should I perform cleanup at the end of a repoze.bfg response?
Example code for the repoze.bfg web framework performs post-response cleanup by adding a __del__ method to an object attached to the request's environ. Is there a better way to clean up database connections, etc. after the response has been completely sent to the client? ...