Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Created July 28, 2011 17:13
Show Gist options
  • Save b1naryth1ef/1111988 to your computer and use it in GitHub Desktop.
Save b1naryth1ef/1111988 to your computer and use it in GitHub Desktop.
Method 3: GetATTR()
import dictt
x = MyFunc1
y = getattr(dictt,x)
y("HIIII!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment