Рассмотрим проблему:
class Test(OtherClass):
def __init__(self, *args, **kwargs):
super(Test, self).__init__(*args, **kwargs)
>>> Test()
Traceback (most recent call last):
File "
", line 1, in
Test()
File "testcase.py", line 13, in __init__
super(Test, self).__init__(*args, **kwargs)
TypeError: must be type, not classobj
А вот
(
Read more... )