Questions
import inspect def foo(): print(inspect.stack()[0][3]) print(inspect.stack()[1][3]) #will give the caller of foos name, if something called foo
~ Answered on 2011-02-21 15:16:04