Skip to content

Instantly share code, notes, and snippets.

@hynek
Created May 17, 2013 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hynek/5598933 to your computer and use it in GitHub Desktop.
Save hynek/5598933 to your computer and use it in GitHub Desktop.
>>> def f(x,*,y,z):
... print(x, y, z)
...
>>> f(1,2,3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f() takes 1 positional argument but 3 were given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment