Message273234
| Author |
ncoghlan |
| Recipients |
SilentGhost, barry, mb_, ncoghlan, rhettinger, yselivanov |
| Date |
2016年08月20日.18:07:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1471716424.93.0.43633864592.issue27814@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|