title: How to get the caller's method name in the called method?
body: <p>Python: How to get the caller's method name in the called method?</p>
  
  <p>Assume I have 2 methods:</p>
  
  <pre><code>def method1(self):
      ...
      a = A.method2()
  
  def method2(self):
      ...
  </code></pre>
  
  <p>If I don't want to do any change for method1, how to get the name of the caller (in this example, the name is method1) in method2?</p>