[issue20624] Clarify recommendation to inherit from Exception
Roundup Robot added the comment: New changeset 8dc1b45bd467 by Mark Dickinson in branch '3.4': Issue #20624: Exception docs wording tweak - clarify that it's okay to inherit from a subclass of Exception. http://hg.python.org/cpython/rev/8dc1b45bd467 New changeset 262204877004 by Mark Dickinson in branch 'default': Issue #20624: Merge exception docs tweak from 3.4 branch. http://hg.python.org/cpython/rev/262204877004 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20624] Clarify recommendation to inherit from Exception
Roundup Robot added the comment: New changeset f729a0e90c4f by Mark Dickinson in branch '2.7': Issue #20624: Merge exception docs tweak from 3.4 branch. http://hg.python.org/cpython/rev/f729a0e90c4f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20624] Clarify recommendation to inherit from Exception
Mark Dickinson added the comment: Fixed. Closing. -- resolution: - fixed status: open - closed versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20624] Clarify recommendation to inherit from Exception
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: docs@python - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20624] Clarify recommendation to inherit from Exception
New submission from Mark Dickinson: From http://docs.python.org/3.4/library/exceptions.html: ... 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@python components: Documentation messages: 211214 nosy: docs@python, mark.dickinson priority: normal severity: normal status: open title: Clarify recommendation to inherit from Exception versions: Python 2.7, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20624] Clarify recommendation to inherit from Exception
Éric Araujo added the comment: In my reading “at least” means that exceptions should derive from Exception if they don’t derive from a more specific subclass. IOW the same meaning as your proposed wording, but less clear. +1 to your rewording. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com