This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark Borgerding
Recipients Joel Croteau, Mark Borgerding, eric.snow, giampaolo.rodola, pablogsal, pitrou, pmpp, rhettinger, tim.peters
Date 2019-10-29.17:56:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572371760.91.0.822704066847.issue36666@roundup.psfhosted.org>
In-reply-to
Content
I'm not trying to disrespect anyone: not users nor certainly Python developers.  I have loved Python since I learned it in 2001.  I was merely trying to respond to what seemed like an automatic rejection of changing legacy behavior.  I certainly agree changes to default behavior should not be made lightly, but sometimes they *should* be made.

This may be such a case:
a) A user writing a thread function either consciously thinks about exceptions while they write function or they do not.  Sure, we should always do the former; just like we should always eat our veggies and get lots of exercise, but ....
b) If they *do* think about exceptions, they will either
b.1) write exception handlers within that function, or
b.2) rely on default behavior that simply prints out the exception string to stderr and lets the thread quietly die.
c) If they did not explicitly think about exceptions while they wrote the function, they may have in the back of their mind the reasonable expectation that an exception will not be ignored.

Changing `join()` to propagate unhandled exceptions would admittedly break b.2 code, but provides absolution for all sinners who have written case c.

This is what I meant by, "I suspect there is more code that will be fixed by such a change than broken."

I'll confess I only just now became aware of `threading.excepthook` added in python 3.8.  Does it change this problem?
History
Date User Action Args
2019-10-29 17:56:01Mark Borgerdingsetrecipients: + Mark Borgerding, tim.peters, rhettinger, pitrou, giampaolo.rodola, pmpp, eric.snow, pablogsal, Joel Croteau
2019-10-29 17:56:00Mark Borgerdingsetmessageid: <1572371760.91.0.822704066847.issue36666@roundup.psfhosted.org>
2019-10-29 17:56:00Mark Borgerdinglinkissue36666 messages
2019-10-29 17:56:00Mark Borgerdingcreate