identifying new not inherited methods
Steve Holden
steve at holdenweb.com
Tue Sep 26 14:52:01 EDT 2006
Chaz Ginger wrote:
> Steve Holden wrote:
>
>>malkarouri at gmail.com 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 will not pick up all the
> classes that make up A. Don't you want to use the MRO instead?
>
Tell me, what won't appear in the dir() of A that *will* appear in the
dir() of a subclass of A? Seems to me you're trying to overcomplicate
things.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list