super() fails with error: TypeError “argument 1 must be type, not classobj” when parent does not inherit from object
I get some error that I can’t figure out. Any clue what is wrong with my sample code? class B: def meth(self, arg): print arg class C(B): def meth(self, arg): super(C, self).meth(arg) print C().meth(1) I got the sample test code from help of ‘super’ built-in method. Here is the error: Traceback (most recent call last): … Read more