Message211214
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." |
|
Date |
User |
Action |
Args |
2014-02-14 11:31:29 | mark.dickinson | set | recipients:
+ mark.dickinson, docs@python |
2014-02-14 11:31:29 | mark.dickinson | set | messageid: <1392377489.91.0.767550317256.issue20624@psf.upfronthosting.co.za> |
2014-02-14 11:31:29 | mark.dickinson | link | issue20624 messages |
2014-02-14 11:31:29 | mark.dickinson | create | |
|