[issue15034] Document best practices for exceptions

2020-11-10 Thread Vedran Čačić
Vedran Čačić added the comment: Terry: of course, if a method is not overridden, there's no need to call super()'s method, since the only thing it would do is call the same thing that would be called without overriding. But of course, if Exception's __init__ does anything, then super() should

[issue15034] Document best practices for exceptions

2020-11-10 Thread Irit Katriel
Irit Katriel added the comment: There are examples in the tutorial where super().__init__ is not called, like here: https://docs.python.org/3/tutorial/errors.html#user-defined-exceptions -- nosy: +iritkatriel versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Py

[issue15034] Document best practices for exceptions

2013-02-26 Thread Ezio Melotti
Ezio Melotti added the comment: I'm removing the "devguide" component and update the title accordingly. -- components: +Documentation -Devguide title: Devguide should document best practices for stdlib exceptions -> Document best practices for exceptions ___