How about registering an atexit handler to cleanup the thread.
http://docs.python.org/library/atexit.html
--
Michael
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To
Thanks Michael.
I tried this before but it doesn't work because, I think, the
interpreter isn't going through its normal termination routine since
there are still threads alive. I think this is a cart before the
horse sort of thing.
-Adam
On Oct 13, 10:06 am, Michael Merickel
On Thu, 2011-10-13 at 10:16 -0700, Adam Ryan wrote:
Thanks Michael.
I tried this before but it doesn't work because, I think, the
interpreter isn't going through its normal termination routine since
there are still threads alive. I think this is a cart before the
horse sort of thing.
I've
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.
Regards, Adam
On Oct 13, 10:21 am, Chris McDonough chr...@plope.com wrote:
On Thu, 2011-10-13 at 10:16 -0700, Adam Ryan wrote:
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