Skip to content

Instantly share code, notes, and snippets.

@almet
Created January 13, 2014 12:09
Show Gist options
  • Save almet/8399229 to your computer and use it in GitHub Desktop.
Save almet/8399229 to your computer and use it in GitHub Desktop.
that remembers me how python can tell you it was "expecting 2 args, but got 2".
>>> def function(foo, bar, baz="test"):
... pass
>>> function("foo", baz="test")
TypeError: function() takes at least 2 arguments (2 given)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment