Getting a function name from string

David Rasmussen david.rasmussen at
Wed Nov 2 23:55:34 CET 2005

If I have a string that contains the name of a function, can I call it? 
As in:

def someFunction():
	print "Hello"

s = "someFunction"
s() # I know this is wrong, but you get the idea...


More information about the Python-list mailing list