super - is (should) it (be) a reserved word?
Aleksei Guzev
aleksei.guzev at bigfoot.com
Sun Oct 8 23:37:15 EDT 2000
I'm afraid "super" should evaluate to a sequence of class object, because of
multiple inheritance.
-----Original Message-----
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...
[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
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list