Message 241452 - Python tracker

Message241452

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 <1429385608.73.0.791271816142.issue23990@psf.upfronthosting.co.za>
In-reply-to
Content
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 :).
History
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: <1429385608.73.0.791271816142.issue23990@psf.upfronthosting.co.za>
2015-04-18 19:33:28r.david.murraylinkissue23990 messages
2015-04-18 19:33:28r.david.murraycreate