Skip to content

Instantly share code, notes, and snippets.

@fcamel
Created April 23, 2017 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcamel/56877b295ab98c43346a8192d9db9ed6 to your computer and use it in GitHub Desktop.
Save fcamel/56877b295ab98c43346a8192d9db9ed6 to your computer and use it in GitHub Desktop.
$ cat a.py
class A(object):
def foo(self):
return "foo"
a = A()
print a.foo()
class A(object):
def foo(self):
return "bar"
print a.foo()
$ python a.py
foo
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment