Skip to content

Instantly share code, notes, and snippets.

@zxytim
Created September 23, 2014 15:46
Show Gist options
  • Save zxytim/b6079a956ac70241d113 to your computer and use it in GitHub Desktop.
Save zxytim/b6079a956ac70241d113 to your computer and use it in GitHub Desktop.
X = 0
Y = 0
def wrapper():
X = 1
Y = 1
class C(object):
print X, Y # <- what happens at this line?
X = 2
wrapper()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment