Python subprocess question

skip at skip at
Tue Jan 6 19:18:42 CET 2009

    Roger> .setDaemon(True) means the thread gets destroyed when the program
    Roger> exits and default .setDaemon(False) means that the thread
    Roger> continues to process even when the main program is gone?

Approximately.  The main thread (and thus the program) will exit only when
all non-daemon threads have finished.  A thread can't continue to run if the
main program has exited.

Skip Montanaro - skip at -

More information about the Python-list mailing list