Get reference to parent class from subclass?

johnohagan mail at johnohagan.com
Sun Aug 28 04:18:54 EDT 2011


On Sun, 28 Aug 2011 14:00:24 +1000
John O'Hagan <research at johnohagan.com> wrote:

> class P():
>     pass
> 
> class C(P):
>     pass
> 
> Can I get P from C? 
> 

Never mind, it's __bases__ (not found in dir(C))

> 
> Regards,
> 
> John



More information about the Python-list mailing list