“A man's reach should exceed his grasp, or what's heaven for” — Robert Browning
But you can get the current function's name by using:
sys._getframe().f_code.co_name
Seems to work alright for debugging purposes. See the link embedded in the title for the origins and 3 other methods.
Cheers,Steve