Skip to content

Instantly share code, notes, and snippets.

@vkolev
Created May 15, 2013 07:36
Show Gist options
  • Save vkolev/5582229 to your computer and use it in GitHub Desktop.
Save vkolev/5582229 to your computer and use it in GitHub Desktop.
Execute function by string
def test():
print "Call from global"
globals()["test"]()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment