[Python-3000] Fixing super anyone? (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 19 00:41:40 CEST 2007


Guido van Rossum wrote:

Is anyone available to write up a PEP on how to turn super into a keyword? Inside regular and class methods, super.foo(args) should be equivalent to super(ThisClass, self).foo(args).

As I'm still not convinced that super() is very useful in the first place, I'm not sure I want it made into a keyword at all.

I'd rather see syntactic support for making a normal inherited method call without danger of using the wrong class, e.g. if you change a base class but forget to update inherited calls to match.

-- Greg



More information about the Python-3000 mailing list