[docs] [issue16851] Hint about correct ismethod and isfunction usage

Ezio Melotti report at bugs.python.org
Mon Mar 4 19:00:18 CET 2013


Ezio Melotti added the comment:

I checked the tests on 2.7 and found this:

        # contrary to spec, ismethod() is also True for unbound methods
        # (see #1785)
        self.assertIn(('f', B.f), inspect.getmembers(B, inspect.ismethod))

#1785 also has some discussion about this.

----------
nosy: +pitrou

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


More information about the docs mailing list