[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)
True

Isn't this a regression ?

Regards,
Vincent Pelletier

----------
nosy: +vpelletier

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1785>
_______________________________________


More information about the Python-bugs-list mailing list