SyntaxFix
Write A Post
Hire A Developer
Questions
I guess inspect is the best way to do this. For example:
inspect
import inspect def bar(): print("My name is", inspect.stack()[0][3])