I want to call some unknown function with adding parameters using getattr function. Is it possible?
If you wish to invoke a dynamic method with a dynamic list of arguments / keyword arguments, you can do the following:
function_name = 'wibble' args = ['flip', 'do'] kwargs = {'foo':'bar'} getattr(obj, function_name)(*args, **kwargs)