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".

0 comments

Popular Posts

无觅相关文章插件,迅速提升网站流量