Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12400 > unrolled thread
| Started by | John O'Hagan <research@johnohagan.com> |
|---|---|
| First post | 2011-08-28 14:00 +1000 |
| Last post | 2011-08-28 14:00 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Get reference to parent class from subclass? John O'Hagan <research@johnohagan.com> - 2011-08-28 14:00 +1000
| From | John O'Hagan <research@johnohagan.com> |
|---|---|
| Date | 2011-08-28 14:00 +1000 |
| Subject | Get 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
Back to top | Article view | comp.lang.python
csiph-web