The following code should call the required function
import fibo result = getattr(fibo, 'baz') print result
Similarly we can use getattr class instance bound methods, module-level methods, class methods and so on.
The following code should call the required function
import fibo result = getattr(fibo, 'baz') print result
Similarly we can use getattr class instance bound methods, module-level methods, class methods and so on.