Hacker News new | past | comments | ask | show | jobs | submit login

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'



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: