[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 be 
called from the overrridden method.

--
nosy: +veky

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Python 
3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15034
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com