[Tutor] quirky multiple inheritance example!?
Kent Johnson
kent37 at tds.net
Thu Feb 9 03:43:09 CET 2006
Alan Gauld wrote:
> The problem is that super appears to only work with single inheritance.
> There may be a way to makle it work for multiple inheritance by changing
> the second parameter but the documentration is a bit thin!!
That's ironic - super() is intended to ease some of the problems with
multiple inheritance especially diamond patterns. Some docs are here:
http://www.python.org/2.2.3/descrintro.html#cooperation
The problem with the OP is that not all the classes involved use super().
Kent
More information about the Tutor
mailing list