Welcome, guest | Sign In | My Account | Store | Cart
import inspect

def callee():
    return inspect.getouterframes(inspect.currentframe())[1][1:4]

def caller():
    return inspect.getouterframes(inspect.currentframe())[2][1:4]

History

  • revision 4 (12 years ago)
  • previous revisions are not available