Created
April 26, 2014 14:13
-
-
Save t184256/11321078 to your computer and use it in GitHub Desktop.
python shatters my logic
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
#!/usr/bin/python | |
a = 'sooner' | |
def parent_func(): | |
print a | |
# Guess what uncommenting the line below would change? | |
#a = 'parent' | |
return a | |
a = 'later' | |
print parent_func() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment