How to kill a thread from another thread ?
Aahz Maruch
aahz at panix.com
Thu Nov 9 10:42:42 EST 2000
In article <3A0A6715.35C19F47 at ina.fr>, Richard Gruet <rgruet at ina.fr> wrote:
>
>Does someone know how to kill a Python thread from another Python
>thread (in the same process) ?
You don't. You need to set up each of your threads so that they look
for some kind of signal to kill themselves (which means returning). It
has been argued that the ability to kill threads is necessary for server
applications, but I haven't seen any powerful arguments in favor of that.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"Every flame is sacred, every flame is great." --Orc
More information about the Python-list
mailing list