Re: identifying new not inherited methods

2006-09-27 Thread malkarouri
George Sakkis wrote: [...] > You're looking at it backwards; there's no particular reason this > should be a method of class A since it can be used for any arbitrary > object with no extra overhead. Now, if you intend to use it only for > instances of A and its subclasses, the only difference would

Re: identifying new not inherited methods

2006-09-27 Thread John Roth
[EMAIL PROTECTED] wrote: > Hi, > > I am writing a library in which I need to find the names of methods > which are implemented in a class, rather than inherited from another > class. To explain more, and to find if there is another way of doing > it, here is what I want to do: I am defining two cl

Re: identifying new not inherited methods

2006-09-26 Thread Chaz Ginger
Steve Holden wrote: > Chaz Ginger wrote: >> Steve Holden wrote: >> >>> [EMAIL PROTECTED] wrote: >>> Hi, I am writing a library in which I need to find the names of methods which are implemented in a class, rather than inherited from another class. [...] >> >> >> You don't r

Re: identifying new not inherited methods

2006-09-26 Thread Steve Holden
Chaz Ginger wrote: > Steve Holden wrote: > >>[EMAIL PROTECTED] wrote: >> >>>Hi, >>> >>>I am writing a library in which I need to find the names of methods >>>which are implemented in a class, rather than inherited from another >>>class. [...] > > > You don't really want to use dir(A), since this

Re: identifying new not inherited methods

2006-09-26 Thread George Sakkis
[EMAIL PROTECTED] wrote: > George Sakkis wrote: > [...] > > I'd rather have it as a function, not attached to a specific class: > > > > Thanks a lot George, that was what I was looking for. Got to > understand/appreciate inspect more. > Of course it works as a method. So, other than having it as a

Re: identifying new not inherited methods

2006-09-26 Thread malkarouri
George Sakkis wrote: [...] > I'd rather have it as a function, not attached to a specific class: > Thanks a lot George, that was what I was looking for. Got to understand/appreciate inspect more. Of course it works as a method. So, other than having it as a general utility, I presume there is no s

Re: identifying new not inherited methods

2006-09-26 Thread Chaz Ginger
Steve Holden wrote: > [EMAIL PROTECTED] wrote: >> Hi, >> >> I am writing a library in which I need to find the names of methods >> which are implemented in a class, rather than inherited from another >> class. To explain more, and to find if there is another way of doing >> it, here is what I want

Re: identifying new not inherited methods

2006-09-26 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi, > > I am writing a library in which I need to find the names of methods > which are implemented in a class, rather than inherited from another > class. To explain more, and to find if there is another way of doing > it, here is what I want to do: I am defining two cl

Re: identifying new not inherited methods

2006-09-26 Thread Tim Chase
> I am writing a library in which I need to find the names of methods > which are implemented in a class, rather than inherited from another > class. To explain more, and to find if there is another way of doing > it, here is what I want to do: I am defining two classes, say A and B, > as: > > cla

Re: identifying new not inherited methods

2006-09-26 Thread George Sakkis
[EMAIL PROTECTED] wrote: > Hi, > > I am writing a library in which I need to find the names of methods > which are implemented in a class, rather than inherited from another > class. To explain more, and to find if there is another way of doing > it, here is what I want to do: I am defining two cl

Re: identifying new not inherited methods

2006-09-26 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I am writing a library in which I need to find the names of methods > which are implemented in a class, rather than inherited from another > class. To explain more, and to find if there is another way of doing > it, here is what I want to do: I am defining two classes, s

identifying new not inherited methods

2006-09-26 Thread malkarouri
Hi, I am writing a library in which I need to find the names of methods which are implemented in a class, rather than inherited from another class. To explain more, and to find if there is another way of doing it, here is what I want to do: I am defining two classes, say A and B, as: class A(obje