Last active
October 7, 2019 16:03
-
-
Save jseakle/05c4b0b65d5d5ea0dc3b7801b33463b4 to your computer and use it in GitHub Desktop.
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
# python2.7 | |
def foo(): | |
#exec "" # uncomment to make this work, see https://stackoverflow.com/a/8028785/314922 | |
defaults = { | |
'what': None, | |
} | |
locals().update(defaults) | |
print what | |
#what = 5 # uncomment to break it again | |
foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment