Simply print current function name
Hi all,
When developing, I hate having to search in which portion of my code I am. For Tippy, I searched for a way to always display the function name in case of an error.
Hopefully, Python offers a simple (but curious) way to perform this.
Here is how to print your function name as a string in Python :
And here is the result
There it is !
You can also find this tip in my Programming Tips page, in the Python section.