This will add some overhead for every single call to such wrapped function. If you use that extensively for many classes, won&#x27;t that be a huge performance degradation?<p>It would maybe be nice to have a flag so that these wrappings apply only in test or debug mode.<p>Also, it works e.g. by using `inspect.currentframe().f_back.f_back`. I&#x27;m not sure if that is such a clean and stable solution. (See e.g. here: <a href="https:&#x2F;&#x2F;github.com&#x2F;amitassaraf&#x2F;lang&#x2F;blob&#x2F;master&#x2F;src&#x2F;lang&#x2F;access.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;amitassaraf&#x2F;lang&#x2F;blob&#x2F;master&#x2F;src&#x2F;lang&#x2F;acc...</a>) E.g. when you add other wrappers around your function, I&#x27;m quite sure that this would break.