super() doesn't get superclass
Hrvoje Niksic
hniksic at xemacs.org
Wed Sep 19 07:16:08 EDT 2007
Michele Simionato <michele.simionato at gmail.com> writes:
> On Sep 19, 12:36 pm, Bruno Desthuilliers <bruno.
> 42.desthuilli... at wtf.websiteburo.oops.com> wrote:
>
>> The next class in the MRO *is* a superclass of the *instance*. Else it
>> wouldn't be in the MRO !-)
>
> Bruno, there is no such a thing as a superclass in a multiple
> inheritance world, and it is a very bad idea to continue to use that
> terminology.
Your arguments against the superclass term seem to assume that there
is only a single superclass to a particular class. In the example you
give in your essay, I would say that all of A, B, and T are
superclasses of C, and Python's super correctly iterates over all of
them.
Wikipedia defines superclass as a "class from which other classes are
derived", which seems perfectly valid for MI.
More information about the Python-list
mailing list