question about ctrl-d and atexit with threads

skip at skip at
Thu Mar 5 18:02:53 CET 2009

What happens if you simply call


(or in Python 2.6):

    my_thread.daemon = True

?  That is the documented way to exit worker threads when you want the
application to exit.  From the threading module docs:

    "The entire Python program exits when no alive non-daemon threads are


More information about the Python-list mailing list