Threads and Interpreter death
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Thu Feb 9 15:39:20 EST 2006
Carl J. Van Arsdall:
>I've been toying with threads a lot lately and I've noticed that if a
>scripting error occurs in a thread the thread dies, but not the process
>that spawned the thread.
>
>Is python supposed to behave this way or is this type of behavior
>accidental?
"start_new_thread(function, args[, kwargs])
When the function terminates with an unhandled exception, a stack trace is
printed and then the thread exits (but other threads continue to run)."
http://docs.python.org/lib/module-thread.html
--
René Pijlman
More information about the Python-list
mailing list