Message183439
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 |
|
Date |
User |
Action |
Args |
2013-03-04 12:36:21 | takluyver | set | recipients:
+ takluyver, gregcouch, ezio.melotti, eric.araujo, chris.jerdonek, docs@python, federico.reghenzani, wdanilo |
2013-03-04 12:36:20 | takluyver | set | messageid: <1362400580.98.0.603046764475.issue16851@psf.upfronthosting.co.za> |
2013-03-04 12:36:20 | takluyver | link | issue16851 messages |
2013-03-04 12:36:20 | takluyver | create | |
|