Message241452
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:28 | r.david.murray | set | recipients:
+ r.david.murray, terry.reedy, belopolsky, christian.heimes, ionelmc, Claudiu.Popa, ethan.furman, llllllllll, jedwards |
2015-04-18 19:33:28 | r.david.murray | set | messageid: <1429385608.73.0.791271816142.issue23990@psf.upfronthosting.co.za> |
2015-04-18 19:33:28 | r.david.murray | link | issue23990 messages |
2015-04-18 19:33:28 | r.david.murray | create | |
|