Jumping over in the class hierarchy

sjdevnull at yahoo.com sjdevnull at yahoo.com
Tue Aug 1 14:45:16 EDT 2006


Pupeno wrote:
> Hello,
> I want to jump over a method in the class hierarchy, that is:  If I have
> class A(object), clas B(A), class C(B) and in C, I want a method to do
> exactly what A does but not what B does in its reimplementation, would it
> be correct to do: super(A, super(B, self)).method() in C ?
> Thank you.

There's no reason to mess with super.  Explicitly call A.method()




More information about the Python-list mailing list