Get reference to parent class from subclass?

John O'Hagan research at johnohagan.com
Sun Aug 28 00:00:24 EDT 2011


class P():
    pass

class C(P):
    pass

Can I get P from C? 

IOW, can I get a reference to the object P from the object C? This should be obvious one way or the other, but I haven't been able to find the answer.

Regards,

John



More information about the Python-list mailing list