Hello!

Im working with new (object) classes and normaly call init of ther
motherclass with callin super(...), workes fine.

No, I've got a case with multiple inherance and want to ask if this is
the right and common case to call init:

class Mother(object):
        def __init__(self, param_mother): print 'Mother'
class Father(object):
        def __init__(self, param_father): print 'Father'
class Child(Mother, Father):
        def __init__(self, param_mother, param_father): 
                Mother.__init__(self, param_mother)
                Father.__init__(self, param_mother)
child = Child(1, 2)

Thanks, AXEL.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to