I'm sorry for my silly question, but... let's suppose I have this classes:
class A():
msg = 'hehehe'
class B(A):
msg = 'hohoho'
class C(B):
pass
and an instance of B or C. So, how to get the variable 'msg' from the parent's class object through this instance? I've tried this:
foo = B() #or C()
bar = super(foo.__class__)
print bar.msg
but got the message: "TypeError: super() argument 1 must be type, not classobj"