On Thu, 2011-10-13 at 11:28 -0700, Adam Ryan wrote:
> Rude indeed :)  Thanks Chris.  But it looks like paste/paste/
> reloader.py hasn't been updated since 2008-10-2, and this behavior
> changed between pyramid 1.0 and 1.2.

It's a poor idea to rely on any object's __del__ for shutdown cleanup
purposes, if only because it can never be guaranteed to get called if
the object is involved in a reference cycle.  The router instance may
have become involved in a reference cycle between 1.0 and 1.2 but I
can't justify spending any effort trying to figure out how, because its
__del__ is just not the right place to do interpreter shutdown work
(what happens if there are two routers in the same process?).  That
said, I don't know where the right place is given the behavior of paster
serve.

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to