Created
April 23, 2017 01:25
-
-
Save fcamel/56877b295ab98c43346a8192d9db9ed6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ 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