super() and multiple inheritance failure

Michele Simionato michele.simionato at gmail.com
Sat Sep 26 06:03:09 CEST 2009


On Sep 26, 4:36 am, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:
> I don't understand why I'm getting the following behaviour when using
> super() with multiple inheritance.

super is working as intended. If you do not want cooperative methods,
don't use super
and call directly the superclass. I usually recommend avoiding
multiple inheritance
altogether. You may want to read "Things to know about super":

http://www.artima.com/weblogs/viewpost.jsp?thread=236275
http://www.artima.com/weblogs/viewpost.jsp?thread=236278
http://www.artima.com/weblogs/viewpost.jsp?thread=237121



More information about the Python-list mailing list