Skip to content

Instantly share code, notes, and snippets.

@frodo821
Created January 15, 2018 05:40
Show Gist options
  • Save frodo821/29faf0fbd666f642f2dfd1615b7f825e to your computer and use it in GitHub Desktop.
Save frodo821/29faf0fbd666f642f2dfd1615b7f825e to your computer and use it in GitHub Desktop.
def overloaded(a):
print(a)
def overloaded(a, b):
print(a, b)
#------
>>> overloaded(1)
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
overloaded(1)
TypeError: overloaded() missing 1 required positional argument: 'b'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment