Created
January 13, 2014 12:09
-
-
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".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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