Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Jul 30 22:25:39 EDT 2010
Steven D'Aprano wrote:
> A
> / \
> C B
> \ /
> D
> / \
> E F
>
> Yes, a super call might jog left from
> C to B, but only when being called from one of the lower classes D-F.
> That's still an upwards call relative to the originator, not sidewards.
But it's not an upward call relative to the class mentioned
in the super() call, which is why I say it's misleading.
--
Greg
More information about the Python-list
mailing list