Skip to content

Instantly share code, notes, and snippets.

@ZachMassia
Created October 22, 2012 05:32
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 ZachMassia/3929846 to your computer and use it in GitHub Desktop.
Save ZachMassia/3929846 to your computer and use it in GitHub Desktop.
No global
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