[Python-3000] Fixing super anyone?

Jim Jewett jimjjewett at gmail.com
Thu Apr 19 00:03:47 CEST 2007

On 4/18/07, Guido van Rossum <guido at python.org> 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). I think there are ways
> to make the old syntax work too, but maybe that's only necessary for
> 2.6.

Does this mean it should find the super of the current class (which
isn't yet defined when the method is being defined)?

That would be a slight change (though probably an improvement) against
today's lookup-by-name.

If that change is OK, and no one else volunteers, I'll try to take a
go at it this weekend.


More information about the Python-3000 mailing list