I want to pass elements of list as function arguments like this:
def foo(a,b,c): #do something list=[1,2,3] foo(list)
I can\'t use foo(
Use the * argument unpacking operator:
seq = [1, 2, 3] foo(*seq)
So in the input function you could use
getattr(self, func)(*args)
PS. Don't name your variables list, since it shadows the built-in of the same name.
list