[Python-Dev] python and super
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Apr 15 03:02:46 CEST 2011
Michael Foord wrote:
> What I was suggesting is that a method not calling
> super shouldn't stop a *sibling* method being called, but could still
> prevent the *parent* method being called.
There isn't necessarily a clear distinction between parents
and siblings.
class A:
...
class B(A):
...
class C(A, B):
...
In C, is A a parent of B or a sibling of B?
--
Greg
>
> Michael
>
More information about the Python-Dev
mailing list