Get the name of the caller in decorator?

后端 未结 0 1392
南笙
南笙 2021-01-24 13:23

I have the following decorator:

my_decorator.py

import functools

def caller_name():
    frm = inspect.stack()[1]
    mod = inspect.getmod         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题