Skip to content

Instantly share code, notes, and snippets.

@mnuck
Created May 25, 2012 14:14
Show Gist options
  • Save mnuck/2788358 to your computer and use it in GitHub Desktop.
Save mnuck/2788358 to your computer and use it in GitHub Desktop.
Python oddity
#
# Credit for finding this one goes to Brian Goldman
#
broken = 'broken'
works = 'works'
def test():
print 'In Test', works
print 'In Test', broken
if broken != broken:
broken = 'broken'
print 'At Global', works
print 'At Global', broken
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment