Aug-14-2022, 06:36 PM
Depends on what is wanted, but that seems to display the name of the function, not the name that calls it. (similar to
inspect.currentframe().f_code.co_name
) If you assign the function to a variable and call the variable, it still returns the original function name.