Calling __init__ with multiple inheritance
jfj
jfj at freemail.gr
Mon Mar 28 22:27:42 EST 2005
Peter Otten wrote:
> Here is an alternative approach that massages the initializer signatures a
> bit to work with super() in a multiple-inheritance environment:
> super(Father, self).__init__(p_father=p_father, **more)
Is there any advantage using super in this case?
I think the case Father.__init__ (self, params) is simpler
and does the job perfectly well.
super seems to be needed in "Dynamic Inheritance" cases where
we don't know an object's bases and there are comlicated mro issues!
jfj
More information about the Python-list
mailing list