[issue1785] "inspect" gets broken by some descriptors

Vincent Pelletier report at bugs.python.org
Wed Jan 18 16:47:32 CET 2012

Vincent Pelletier <plr.vincent at gmail.com> added the comment:

This change causes the following behaviour:

>>> import inspect
>>> class B(object):
...   def f(self):
...     pass
>>> inspect.getmembers(B, inspect.ismethod)

While I would expect the result to contain f:

>>> inspect.ismethod(B.f)

Isn't this a regression ?

Vincent Pelletier

nosy: +vpelletier

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list