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
[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
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
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
[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
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
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
[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
> 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
[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
[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
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
12 matches
Mail list logo