Message273234
It's the "really common problem" assertion that I'm disputing - when particular instances of "catch this exception, but not these ones" become common, we tend to *change the standard exception hierarchy* to eliminate them (e.g. StopIteration, KeyboardError, GeneratorExit no longer inheriting from Exception).
So if you have new cases where that's happening frequently for you (presumably as a result of the https://www.python.org/dev/peps/pep-3151/ reworking of the OSError hierarchy, given the documented examples), then it would be better to take that *problem* to python-ideas for discussion and brainstorming, before coming back to the issue tracker to propose a possible solution (whether that's changing the hierarchy, enhancing contextlib.suppress, or doing something else) |
|
Date |
User |
Action |
Args |
2016-08-20 18:07:04 | ncoghlan | set | recipients:
+ ncoghlan, barry, rhettinger, SilentGhost, yselivanov, mb_ |
2016-08-20 18:07:04 | ncoghlan | set | messageid: <1471716424.93.0.43633864592.issue27814@psf.upfronthosting.co.za> |
2016-08-20 18:07:04 | ncoghlan | link | issue27814 messages |
2016-08-20 18:07:04 | ncoghlan | create | |
|