[docs] [issue20624] Clarify recommendation to inherit from Exception
report at bugs.python.org
Fri Feb 14 12:31:29 CET 2014
New submission from Mark Dickinson:
"... programmers are encouraged to at least derive new exceptions from the Exception class and not BaseException."
This wording had someone I've talked to recently thinking that user-defined exceptions should inherit *directly* from Exception.
Suggested rewording, dropping the "at least" qualification that as far as I can tell serves no real purpose:
"... programmers are encouraged to derive new exceptions from the Exception class or one of its subclasses, and not from BaseException."
assignee: docs at python
nosy: docs at python, mark.dickinson
title: Clarify recommendation to inherit from Exception
versions: Python 2.7, Python 3.3, Python 3.4
Python tracker <report at bugs.python.org>
More information about the docs