Home

Ben Finney wrote:
> aleax@mac.com (Alex Martelli) writes:
>
>> In general, "a superclass of foo" means "a class X such that foo is a
>> sublass of X"
>
> Sure. However, this doesn't equate to the assertion that "next class
> in the MRO is the superclass", which is what I was responding to.
>
One thing not pointed out in this thread is that the chain of classes
on the MRO starting with super(A, obj) _will_ include all superclasses
of A. That is the guarantee of the MRO, and that is why super is an
appropriate name.

-Scott David Daniels
Scott.Daniels@Acm.Org

previous
next

Re: Must __FILE__ be a narrow string literal?
Re: UK Ordnance survey coordinates and Geocoding anyone ?
Re: status of Programming by Contract (PEP 316)?
Re: C++ Primer ex 7.16 - arguments to main
Re: Dependency Loop seems unavoidable
Dzieci Niczyje
Kidprotect
Niechciane i Zapomniane
Krwinka
Nasze Dzieci