Nick Coghlan added the comment: 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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27814> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com