In Python, how do I get a function name as a string, without calling the function?
def my_function():
pass print
get_function_name_as_string(my_function) # my_function is not in quotes
should output "my_function".
Is such a function available in Python? If not, any ideas on how to implement get_function_name_as_string, in Python?