Skip to content

Instantly share code, notes, and snippets.

@jrdmcgr
Created August 5, 2014 15:14
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 jrdmcgr/71d951ac8f03c679f8eb to your computer and use it in GitHub Desktop.
Save jrdmcgr/71d951ac8f03c679f8eb to your computer and use it in GitHub Desktop.
# first import the global
from global import myspecialglobal
# now import bootstrap which changes the global
import bootstrap
# what is the value of myspecial global?
print myspecialglobal
from global import myspecialglobal
myspecialglobal = 'bootstrapped'
myspecialglobal = 'uninitialized'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment