This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Claudiu.Popa, belopolsky, christian.heimes, ethan.furman, ionelmc, jedwards, llllllllll, r.david.murray, terry.reedy
Date 2015-04-18.19:33:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
They use isinstance, except for a couple that also check co_flags, and the ones that check if the object is a descriptor.  I haven't thought this through fully, but I think this means that in general the descriptor protocol has been invoked or not by the caller of inspect before inspect checks the object.  There is no 'callable' type in python, so the closest analog in the inspect module to 'callable' are the functions that look for __get__ and __set__ methods on descriptors.  If one of *those* is a descriptor, my head will start hurting :).
Date User Action Args
2015-04-18 19:33:28r.david.murraysetrecipients: + r.david.murray, terry.reedy, belopolsky, christian.heimes, ionelmc, Claudiu.Popa, ethan.furman, llllllllll, jedwards
2015-04-18 19:33:28r.david.murraysetmessageid: <>
2015-04-18 19:33:28r.david.murraylinkissue23990 messages
2015-04-18 19:33:28r.david.murraycreate