Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12400
| Date | 2011-08-28 14:00 +1000 |
|---|---|
| From | John O'Hagan <research@johnohagan.com> |
| Subject | Get reference to parent class from subclass? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.542.1314615864.27778.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Get reference to parent class from subclass? John O'Hagan <research@johnohagan.com> - 2011-08-28 14:00 +1000
csiph-web