Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このようなものを考えると:
@my_decorator my_function(some, args)
my_decorator が my_function が呼び出されたファイルと行番号を検出することは可能ですか?
ありがとう
traceback.extract_stack()現在のスタック フレームを調べることができます。
traceback.extract_stack()