Skip to content

Instantly share code, notes, and snippets.

@ssanderson
Created October 16, 2015 22:11
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 ssanderson/4106cb64e60237de697a to your computer and use it in GitHub Desktop.
Save ssanderson/4106cb64e60237de697a to your computer and use it in GitHub Desktop.
STORE_GLOBAL from MAKE_FUNCTION
In [2]: x = 3
In [3]: def foo():
...: global x
...: def x():
...: pass
...:
In [4]: x
Out[4]: 3
In [5]: foo()
In [6]: x
Out[6]: <function __main__.x>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment