this is my code:
class A(object):
def test(self): pass
class B(A): pass
my question is when I run super(B).test, I get the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'super' object has no attribute 'test'
I saw the python document: "super(type) -> unbound super object", why it didn't work? I hope someone could give an example of using "super(type)" corretly, thanks