Message365779
get_argspec accesses the user object 3 times. The first, ob.__call__ was already wrapped in try-except. The second, signature(ob or ob.__call) is wrapped by this issue. It also adds a new test based on Dan's example. The third is (ob or ob.__call__).__doc__. I did not wrap this because I could not create an example for which this fails. There seems to be some special casing of this special attribute so that its default is None.
I opened #40180 for the isinstance bug and #40181 for further get_argspec changes, in particular, removing the positional-only '/' note. |
|
Date |
User |
Action |
Args |
2020-04-04 20:37:09 | terry.reedy | set | recipients:
+ terry.reedy, taleinat, bup, miss-islington |
2020-04-04 20:37:09 | terry.reedy | set | messageid: <1586032629.44.0.44066312897.issue38689@roundup.psfhosted.org> |
2020-04-04 20:37:09 | terry.reedy | link | issue38689 messages |
2020-04-04 20:37:09 | terry.reedy | create | |
|