title: Python: How to access parent class object through derived class instance?
body: <p>I'm sorry for my silly question, but... let's suppose I have these classes:</p>
  
  <pre><code>class A():
      msg = 'hehehe'
  
  class B(A):
      msg = 'hohoho'
  
  class C(B):
      pass
  </code></pre>
  
  <p>and an instance of B or C. How do I get the variable 'msg' from the parent's class object through this instance?
  I've tried this:</p>
  
  <pre><code>foo = B()
  print super(foo.__class__).msg
  </code></pre>
  
  <p>but got the message: "TypeError: super() argument 1 must be type, not classobj".</p>