title: Can pdb print from which base class did the derived class inherit a particular method from
body: <p>Can pdb print from which base class did the derived class inherit a particular method from?</p>
  
  <pre><code>import pdb
  class A():
      def funct(self):
           print 3
  
  class B():
      def funct(self):
           print 6
  
  class C(A, B):
      pass
  
  b = B();
  print b.funct()
  </code></pre>
  
  <p>===================================</p>
  
  <pre><code>☺ python a.py
  3
  None
  </code></pre>
  
  <p>======================================</p>
  
  <pre><code>python -m pdb a.py
  (Pdb) p c.funct
  &lt;bound method C.funct of &lt;__main__.C instance at 0x102154440&gt;&gt;
  </code></pre>
  
  <p>Is there a way to get from which base class, the derived class C inherited the funct method?</p>