super - is (should) it (be) a reserved word?
aleksei.guzev at bigfoot.com
Mon Oct 9 05:37:15 CEST 2000
I'm afraid "super" should evaluate to a sequence of class object, because of
From: python-list-admin at python.org [mailto:python-list-admin at python.org]On
Behalf Of Alex Martelli
Sent: Saturday, October 07, 2000 3:59 AM
To: python-list at python.org
Subject: Re: super - is (should) it (be) a reserved word?
"Grant Edwards" <ge at nowhere.none> wrote in message
news:wAqD5.4401$WJ3.791257 at ptah.visi.com...
> 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__ satisfies this request, I think.
Would the saving of about three characters to call it, say,
self.__class__.__super__ be worth introducing a 'shortcut'...?
More information about the Python-list