super - is (should) it (be) a reserved word?
Alex Martelli
aleaxit at yahoo.com
Fri Oct 6 17:59:21 EDT 2000
"Grant Edwards" <ge at nowhere.none> wrote in message
news:wAqD5.4401$WJ3.791257 at ptah.visi.com...
[snip]
> Personally, I would like some way to refer to _a_ superclass.
> If there's more than one, it's an error or undefined or
> arbitrarily picks one. Almost all of the code I see/write uses
self.__class__.__bases__[0] satisfies this request, I think.
Would the saving of about three characters to call it, say,
self.__class__.__super__ be worth introducing a 'shortcut'...?
Alex
More information about the Python-list
mailing list