Created
October 22, 2012 05:32
-
-
Save ZachMassia/3929846 to your computer and use it in GitHub Desktop.
No global
This file contains 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
g_list = [1, 2, 3] | |
class Test: | |
def testing(self): | |
print g_list | |
a = Test() | |
a.testing() | |
Output: | |
[1, 2, 3] | |
[Finished in 0.0s] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment