Created
February 3, 2015 21:50
-
-
Save kived/9bb9541af025a8773205 to your computer and use it in GitHub Desktop.
wtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def func(which, *args): | |
def a(): pass | |
def b(): pass | |
def c(): pass | |
return locals()[which](*args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment