class A:
def start(self):
pass
class B(A):
def start(self):
super(A,self).start()
b = B()
b.start()
Gives this error:
Traceback (most recent call last):
File "C:/Python32/a.py", line 10, in <module>
b.start()
File "C:/Python32/a.py", line 7, in start
super(A,self).start()
AttributeError: 'super' object has no attribute 'start'
Why?
As explained in python doc, super works only for new style class, ie :
So you should do something like this :