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

INADA Naoki report at bugs.python.org
Fri Aug 31 03:19:44 EDT 2018


INADA Naoki <songofacandy at gmail.com> added the comment:

I didn't claim this pattern is not used anymore.
My point is "should we suggest this pattern for tutorial readers?"

* Is this pattern recommended blindly?  -- I think no.
* How / when this pattern is recommended?  -- When there is use case people want to catch the base exception.
* Should it be in tutorial?  -- I doubt it.  This topic requires some experience to understand.

----------

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


More information about the docs mailing list