Re: Skipping a superclass

2009-08-02 Thread Miles Kaufmann
On Aug 2, 2009, at 5:36 AM, Steven D'Aprano wrote: I have a series of subclasses like this: class A(object): def method(self, *args): print "Lots of work gets done here in the base class" class B(A): def method(self, *args): print "A little bit of work gets done in B"

Re: Skipping a superclass

2009-08-02 Thread Chris Rebert
On Sun, Aug 2, 2009 at 5:36 AM, Steven D'Aprano wrote: > I have a series of subclasses like this: > > class A(object): >    def method(self, *args): >        print "Lots of work gets done here in the base class" > > class B(A): >    def method(self, *args): >        print "A little bit of work gets

Skipping a superclass

2009-08-02 Thread Steven D'Aprano
I have a series of subclasses like this: class A(object): def method(self, *args): print "Lots of work gets done here in the base class" class B(A): def method(self, *args): print "A little bit of work gets done in B" super(B, self).method(*args) class C(B): d