How to call a function when it's name is stored in a string, has already been answered.
What I want to know is how do I do this if the function I'm wanting to call is defined in my local scope.
This differs from the other questions as they are not referring to calling a function by name when the function is inside another function.
e.g
def outer():
def inner():
# code for inner
method_to_call = 'inner'
# call inner by the value of method_to_call
So in the above code how do I call the function defined by the value in method_to_call
?