Just back from vacation - hence the delayed response... > > super is just a convenience feature added to make Python slightly > > more like some other OOP languages. It is effectively just a > > wrapper around the explicit call to the super class: > > No, super() is much smarter than that and was created to address deficiencies in direct superclass > calling. super(C, self) actually finds the class that follows C in the method resolution order of > the class of self. This can be very different from just calling the base class method; in the case > of multiple inheritance super(C, self) may not ever refer to a base class of C.
Ah! Ok, I didn't realise that. From my quick read of the super documentation I missed that bit and just thought - syntactic sugar... I see that I'll need to do some more experimenting with super... Thanks for the clarification Kent, Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor