Skip to content

Instantly share code, notes, and snippets.

@coffindragger
Created March 6, 2012 22:59
Show Gist options
  • Select an option

  • Save coffindragger/1989604 to your computer and use it in GitHub Desktop.

Select an option

Save coffindragger/1989604 to your computer and use it in GitHub Desktop.
class A(object):
def foo(self, onearg):
print "foo onearg"
class B(object):
def foo(self, onearg, twoarg):
print "foo onearg twoarg"
b = B()
b.foo()
# TypeError: foo() takes exactly 3 arguments (1 given)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment