Skip to content

Instantly share code, notes, and snippets.

@philippstroehle
Created September 14, 2013 11:08
Show Gist options
  • Save philippstroehle/6561107 to your computer and use it in GitHub Desktop.
Save philippstroehle/6561107 to your computer and use it in GitHub Desktop.
import foo
methodToCall = getattr(foo, 'bar')
result = methodToCall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment