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


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

Re: Get reference to parent class from subclass?

Started byjohnohagan <mail@johnohagan.com>
First post2011-08-28 18:18 +1000
Last post2011-08-28 18:18 +1000
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Get reference to parent class from subclass? johnohagan <mail@johnohagan.com> - 2011-08-28 18:18 +1000

#12399 — Re: Get reference to parent class from subclass?

Fromjohnohagan <mail@johnohagan.com>
Date2011-08-28 18:18 +1000
SubjectRe: Get reference to parent class from subclass?
Message-ID<mailman.543.1314615864.27778.python-list@python.org>
On Sun, 28 Aug 2011 14:00:24 +1000
John O'Hagan <research@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

[toc] | [standalone]


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


csiph-web