&ot Journeys' End: Some people are going to hate me for this

Journeys' End

We walk many paths, many roads
Till death halts our steps.
Every day a new adventure,
A new journey of self discovery.

20081009

Some people are going to hate me for this

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: , ,