Skip to content

Instantly share code, notes, and snippets.

Created July 11, 2014 19:30
Show Gist options
  • Save anonymous/351ac5ec3c5fa60469e8 to your computer and use it in GitHub Desktop.
Save anonymous/351ac5ec3c5fa60469e8 to your computer and use it in GitHub Desktop.
In [1]: def post(queue, project, messages, client_uuid):
...: return (queue, project, messages, client_uuid)
...:
In [2]: post(1,2,3,4)
Out[2]: (1, 2, 3, 4)
In [3]: post(1,2,project='cats',client_uuid='dogs')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-738b8b04f122> in <module>()
----> 1 post(1,2,project='cats',client_uuid='dogs')
TypeError: post() got multiple values for keyword argument 'project'
In [4]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment