Skip to content

Instantly share code, notes, and snippets.

@TimothyFitz
Created May 2, 2012 17:54
Show Gist options
  • Save TimothyFitz/2578700 to your computer and use it in GitHub Desktop.
Save TimothyFitz/2578700 to your computer and use it in GitHub Desktop.
>>> def foo(arg, optional='bar'): pass
...
>>> foo(optional='baz')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: foo() takes at least 1 argument (1 given)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment