Re:Wield Python's super() like a Jedi
by teh on Thursday May 26, 2011 @02:58PM
(#2588988)
The issue with your second version is
[ Parent
| on HN ]
Re:Wield Python's super() like a Jedi
by Peristarkawan on Thursday May 26, 2011 @03:04PM
(#2589012)
That's entirely the caller's fault, not the function's. Compare:
>>> def init(**kwargs):
... pass
...
>>> init(shapename='circle', **{'shapename': 'circle'})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: init() got multiple values for keyword argument 'shapename'