&ot
We walk many paths, many roads Till death halts our steps. Every day a new adventure, A new journey of self discovery.
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
Labels: code, computer, python
posted by steve @ 11:36 PM
<< Home
<< Home