class method generates “TypeError: … got multiple values for keyword argument …”
The problem is that the first argument passed to class methods in python is always a copy of the class instance on which the method is called, typically labelled self. If the class is declared thus: class foo(object): def foodo(self, thing=None, thong=’not underwear’): print thing if thing else “nothing” print ‘a thong is’,thong it behaves … Read more