[issue16851] Hint about correct ismethod and isfunction usage
March 4, 2013
12:36 p.m.
Thomas Kluyver added the comment: I agree that the docs for inspect.ismethod() for Python 2 are wrong. The docs say: "Return true if the object is a bound method written in Python." However, it also returns True for an unbound method:
class A: ... def meth(self): ... pass ... A.meth <unbound method A.meth> import inspect inspect.ismethod(A.meth) True
---------- nosy: +takluyver _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16851> _______________________________________
4906
Age (days ago)
4906
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thomas Kluyver