Re: classes riddle

2009-10-19 Thread Dave Angel
inhahe wrote: Can somebody clear this up for me? -- Class B(A): def __init__(self, a) A.__init__(a) self.a = a a = A() ba = B(a) bc = B(a) bd = B(a) -- I'm not sure what A.__init__ here does. I would think its __init__ is designed specifically to run once for any given object.. so i'm no

classes riddle

2009-10-19 Thread inhahe
Can somebody clear this up for me? -- Class B(A): def __init__(self, a) A.__init__(a) self.a = a a = A() ba = B(a) bc = B(a) bd = B(a) -- I'm not sure what A.__init__ here does. I would think its __init__ is designed specifically to run once for any given object.. so i'm not sure what happ