This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients docs@python, mark.dickinson
Date 2014-02-14.11:31:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392377489.91.0.767550317256.issue20624@psf.upfronthosting.co.za>
In-reply-to
Content
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."
History
Date User Action Args
2014-02-14 11:31:29mark.dickinsonsetrecipients: + mark.dickinson, docs@python
2014-02-14 11:31:29mark.dickinsonsetmessageid: <1392377489.91.0.767550317256.issue20624@psf.upfronthosting.co.za>
2014-02-14 11:31:29mark.dickinsonlinkissue20624 messages
2014-02-14 11:31:29mark.dickinsoncreate