(stack)
return getmodule(form[0]).__name__
Retrieve the calling function based on the call stack
Retrieve the calling function based on the call stack
Retrieve the calling function based on the call stack
def get_calling_mod(stack):
    """ Retrieve the calling function based on the call stack
    """
    form = stack[1]
    return getmodule(form[0]).__name__
def get_calling_mod ( stack ) : form = stack [ 1 ] return getmodule ( form [ 0 ] ) . __name__