Get a method instance through 'getattr' but not superclass's method

Radhakrishna Bhat radhakrishna12 at gmail.com
Wed Mar 10 23:47:30 EST 2010


I am using getattr to get a method instance from a class. But it also
returns methods from the superclass. How to detect if an attribute is from
superclass?


-Radhakrishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100311/98d47a49/attachment.html>


More information about the Python-list mailing list