SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a decorator:
def my_function(name=None): return name def get_function_name(function): return function(name=function.__name__) >>> get_function_name(my_function) 'my_function'