Message208535
Ah, I had indeed missed the fact that getfullargspec() was still calling isfunction(). In that case, is the patch currently actually buying us anything much beyond handling __signature__ attributes? Most of the new types that inspect.signature() supports will still fail that preliminary check, so code will need to use the new API explicitly in order to benefit from it.
By contrast, if we remove the check, then there's a wider range of exceptions that may be thrown, but also a much wider variety of inputs supported.
Instead of keeping the check, we could just unconditionally convert exceptions from the signature call to a TypeError in order to maintain compatibility with the old external behaviour. |
|
Date |
User |
Action |
Args |
2014-01-20 12:10:19 | ncoghlan | set | recipients:
+ ncoghlan, terry.reedy, larry, michael.foord, Claudiu.Popa, Yury.Selivanov, yselivanov |
2014-01-20 12:10:19 | ncoghlan | set | messageid: <1390219819.23.0.810903444983.issue17481@psf.upfronthosting.co.za> |
2014-01-20 12:10:19 | ncoghlan | link | issue17481 messages |
2014-01-20 12:10:18 | ncoghlan | create | |
|