[docs] [issue34538] Remove encouragement to author a base class for all Exception subclasses in a module
Ammar Askar
report at bugs.python.org
Thu Aug 30 12:34:36 EDT 2018
Ammar Askar <ammar at ammaraskar.com> added the comment:
For some empirical data, I went through some popular packages that follow this pattern and searched for usage of their base exception classes:
Requests: https://github.com/search?q=except+requests.RequestException&type=Code
PyYaml: https://github.com/search?q=except+yaml.YAMLError&type=Code
Jinja2: https://github.com/search?q=%22except+jinja2.TemplateError%22&type=Code
https://github.com/search?q=%22except+jinja2.exceptions.TemplateError%22&type=Code
https://github.com/search?q=%22except+TemplateError%22&type=Code
----------
nosy: +ammar2
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34538>
_______________________________________
More information about the docs
mailing list