Re: Jumping over in the class hierarchy

2006-08-01 Thread Raymond Hettinger
Pupeno wrote: > 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 ?

Re: Jumping over in the class hierarchy

2006-08-01 Thread Jan Niklas Fingerle
Pupeno <[EMAIL PROTECTED]> wrote: > be correct to do: super(A, super(B, self)).method() in C ? Why do you want to use super? Is there any diamond shaped inheritance in sight? Anyway, have you actually tried, what you suggested? Well, ... --8<---

Re: Jumping over in the class hierarchy

2006-08-01 Thread [EMAIL PROTECTED]
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(

Re: Jumping over in the class hierarchy

2006-08-01 Thread Laszlo Nagy
Pupeno írta: > 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()

Jumping over in the class hierarchy

2006-08-01 Thread Pupeno
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. --