[Python-ideas] Thread exceptions and interruption

Guido van Rossum guido at python.org
Wed Sep 19 22:58:20 CEST 2007


On 9/19/07, Adam Olsen <rhamph at gmail.com> wrote:
> On 9/19/07, Guido van Rossum <guido at python.org> wrote:
> > Regarding the issue of exceptions in threads, I indeed see it as a
> > non-issue. It's easy enough to develop a subclass of threading.Thread
> > which catches any exceptions raised by run(), and stores the exception
> > as an instance variable from which it can be retrieved after join()
> > succeeds.
>
> Perhaps a better question then: do you think it correctly handling
> errors is a significant part of what makes threads hard today?

If you're talking about unhandled exceptions, no, that's absolutely a
non-issue. The real issues are race conditions, deadlocks, livelocks
etc.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-ideas mailing list