[Python-Dev] Problems with the new super()
Larry Hastings
larry at hastings.org
Fri May 2 21:32:37 CEST 2008
Barry Warsaw wrote:
> I think of all the alternatives in PEP 3135, I'd probably prefer
> self.__super__.foo(), except that I'd call it self.super.foo().
I'm not sure that's sufficient. You need to be able to specify a class
when using MI.
I'd prefer self.super().foo(). self.super() would take one argument,
the base class, optional iff self's class has only one base class.
Not that it makes a lick of difference,
/larry/
More information about the Python-Dev
mailing list