Re: find an object ancestor

2008-11-05 Thread Michel Perez
Thanks it works OK On Thu, 2008-11-06 at 13:14 +1000, James Mills wrote: > On Mon, Nov 3, 2008 at 7:16 AM, Michel Perez <[EMAIL PROTECTED]> > wrote: > > HI all: > > > > imagine something like this: > > > > class father: > >pass > > class son( father ): > >pass > > > > I need to know the so

Re: find an object ancestor

2008-11-05 Thread Chris Rebert
On Sun, Nov 2, 2008 at 1:16 PM, Michel Perez <[EMAIL PROTECTED]> wrote: > HI all: > > imagine something like this: > > class father: >pass > class son( father ): >pass > > I need to know the son ancestor class how can i know this. Help on built-in function issubclass in module __builtin__:

Re: find an object ancestor

2008-11-05 Thread James Mills
On Mon, Nov 3, 2008 at 7:16 AM, Michel Perez <[EMAIL PROTECTED]> wrote: > HI all: > > imagine something like this: > > class father: >pass > class son( father ): >pass > > I need to know the son ancestor class how can i know this. >>> class Father(object): pass ... >>> class Son(Father): p