[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

Brett Cannon report at bugs.python.org
Wed Aug 29 15:17:05 EDT 2018


Brett Cannon <brett at python.org> added the comment:

I think the question is how often in real code to people want to catch all exceptions produced by a package or module but not any others. Perhaps it would be better to re-word the advice that when there are many related exceptions that it is suggested you have a base class for them?

----------
nosy: +brett.cannon

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34538>
_______________________________________


More information about the Python-bugs-list mailing list