Author takluyver
Recipients chris.jerdonek, docs@python, eric.araujo, ezio.melotti, federico.reghenzani, gregcouch, takluyver, wdanilo
Date 2013-03-04.12:36:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362400580.98.0.603046764475.issue16851@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-03-04 12:36:21takluyversetrecipients: + takluyver, gregcouch, ezio.melotti, eric.araujo, chris.jerdonek, docs@python, federico.reghenzani, wdanilo
2013-03-04 12:36:20takluyversetmessageid: <1362400580.98.0.603046764475.issue16851@psf.upfronthosting.co.za>
2013-03-04 12:36:20takluyverlinkissue16851 messages
2013-03-04 12:36:20takluyvercreate