What are super()'s semantics?

Carl Banks pavlovevidence at gmail.com
Mon Sep 4 16:29:22 EDT 2006


Maric Michaud wrote:
> Le lundi 04 septembre 2006 13:48, Carl Banks a écrit :
> > Essentially, it's objects that have MROs, not classes.
> Wrong, __mro__ is an attribute of types (subtypes of type) but like __class__
> it is not available in the instances.
> mro() is standard a method of type.

I agree that was misleading; I should have said something like, "Type
of an object never changes, therefore the MRO used for an object is
fixed."

BTW, __class__ is available to instances.  (Were you thinking of
__bases__?)


Carl Banks




More information about the Python-list mailing list