Re: Multiple Inheritence and data attributes

2005-05-06 Thread [EMAIL PROTECTED]
Two things: - A call to super doesn't make senseif a class is not derived, and class b seems superfuous. - Code below is a working example of your code, the way you did it it generates an error. -#!/usr/bin/env python -class A(object): -def __init__(self): -super(A, self).__init__() -

Multiple Inheritence and data attributes

2005-05-06 Thread Derek Basch
Hello Everyone, Given: class A: def __init__(self): super(A, self).__init__() self.dog = "fluffy" def changeDog(self): self.dog = "spike" class B: def __init__(self): super(B, self).__init__() class C(object, A, B): def __init__(self): sup