[Python-ideas] Thread stopping
Steven D'Aprano
steve at pearwood.info
Fri Mar 30 12:14:43 CEST 2012
Matt Joiner wrote:
> Wouldn't it be better to raise a SystemExit in a thread you want
> interrupted?
I must admit I'm rather confused about this suggestion. Do you mean the thread
itself should raise SystemExit? If so, why not just exit the normal way?
If you mean the main thread somehow injects a SystemExit in another thread,
how would you do that? Perhaps I'm missing something obvious, but I don't know
how to do that.
--
Steven
More information about the Python-ideas
mailing list