Who calls my func?
Dec 12, 2023 · 1 min read · Source: https://stackoverflow.com/questions/2654113/how-to-get-the-callers-method-name-in-the-called-method import inspect def f1(): f2() def f2(): curframe = inspect.currentframe() calframe = inspect.getouterframes(curframe, 2) print('...
Join discussion


