Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12400 > unrolled thread

Get reference to parent class from subclass?

Started byJohn O'Hagan <research@johnohagan.com>
First post2011-08-28 14:00 +1000
Last post2011-08-28 14:00 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Get reference to parent class from subclass? John O'Hagan <research@johnohagan.com> - 2011-08-28 14:00 +1000

#12400 — Get reference to parent class from subclass?

FromJohn O'Hagan <research@johnohagan.com>
Date2011-08-28 14:00 +1000
SubjectGet reference to parent class from subclass?
Message-ID<mailman.542.1314615864.27778.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web