Get reference to parent class from subclass?

J

John O'Hagan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top