Passing `__name__` is **ugly**, because it is a dunder variable, but also because it may lead to errors (wrong order of parameters)

Using inspect to get the outer frame is something that most people are afraid of.

How would you do it?

#python
Post image

Comments