How to kill a thread from another thread ?

Aahz Maruch aahz at
Thu Nov 9 16:42:42 CET 2000

In article <3A0A6715.35C19F47 at>, Richard Gruet  <rgruet at> 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

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

"Every flame is sacred, every flame is great."  --Orc

More information about the Python-list mailing list