On 21 Oct 2007, at 12:53, bubblboy wrote:
> (for example: make a thread, start it, wait a number of seconds and if
> it's not done kill it).

I've had that thought before, but is it actually possible to kill a  
thread from the outside? I have yet to find a way to do that.

I suppose you could use something like sys.settrace and have the  
tracing function intercept some kill-flag and thereupon do thread.exit 
()... but settrace is a magical CPython-specific thing and it would  
also make it much slower, so that's probably not a good idea. Any  
other possibilities?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to