What are super()'s semantics?

Mike Krell no at spam.com
Tue Sep 5 01:42:56 EDT 2006


Maric Michaud <maric at aristote.info> wrote in
news:mailman.10330.1157370811.27775.python-list at python.org: 
 
> [examples snipped]
> 
> Hope this is clear.

Yes, I get it now.  In a prior section in "Nutshell", Alex M. goes over the 
MRO as well as the __mro__ attribute.  I remembered the fact that the 
__mro__ attribute can be referenced only on classes.  Somehow, this 
confused me into thinking that the operative MRO for each call to super() 
would be dictated by the class where the call was being made rather than by   
the single instance of D as specified by the second parameter.

   Mike   



More information about the Python-list mailing list