Issue 23988: keyworded argument count is wrong (original) (raw)
Code:
class C(object): def init(self, a, b=2, c=3): pass
class D(C): def init(self, d, **kwargs): super(D, self).init(**kwargs)
class E(D): def init(self, **kwargs): super(E, self).init(**kwargs)
E(d=42, b=0, c=0)
You get the funny message:
TypeError: init() takes at least 2 arguments (3 given)