Last active
November 14, 2015 05:44
-
-
Save lihaoyi/90a6b5e37ccadb73a889 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
| >>> a = 1 | |
| >>> class Foo: | |
| ... a = 2 | |
| ... print a | |
| ... def bar(self): | |
| ... print a | |
| ... | |
| 2 | |
| >>> Foo().bar() | |
| 1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
edit: fixed