class Test:
@staticmethod
def call():
return
def callMethod1():
return
def callMethod2():
return
var methodName='Method1'
I want to invoke callMethod1 or callMethod2 in call() using "call"+methodName(). i.e, in php we do call any member using Test->{"call".methodName}() How can I achieve this in python without eval() method.
1 Answer