safest way to kill a thread

martinnitram at martinnitram at
Wed Jan 19 07:12:39 CET 2005

limodou wrote:
>Using Thread's method setDaemon() before you call the start() method.
>Just like :
thank for fast reply.
from doc, said that setDaemon() function as
"The entire Python program exits when no active non-daemon threads
are left."
is it mean that when the main program exit (normally/abnormally), all
threads created will also exit?
  Thank again.

More information about the Python-list mailing list