the first arg to super() must be a type, not a class obj?
Steve Holden
steve at holdenweb.com
Fri Sep 8 04:38:45 EDT 2006
Andre Meyer wrote:
> Another thing: how does super() work wrt. multiple inheritance? It seems
> like it returns only the first superclass.
>
The whole point of super is that it returns the first superclass in the
MRO that *follows* the class of the (first) argument. It's this
behaviour that makes super() useful in multiple inheritance situations
(if you believe that super() is in fact useful - there are those who
have their doubts).
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list