Message325466
I think option 2 is what functools.update_wrapper() does and it may be better to make create_autospec() consistent with it.
Perhaps we can replace _copy_func_details() with functools.update_wrapper():
assigments = (
'__name__', '__doc__', '__text_signature__',
# And the rest of the attributes in _copy_func_details().
)
functools.update_wrapper(..., assigned=assignments, updated=()) |
|
Date |
User |
Action |
Args |
2018-09-16 02:22:43 | berker.peksag | set | recipients:
+ berker.peksag, anthony-flury, cbelu, xtreak |
2018-09-16 02:22:43 | berker.peksag | set | messageid: <1537064563.71.0.956365154283.issue32153@psf.upfronthosting.co.za> |
2018-09-16 02:22:43 | berker.peksag | link | issue32153 messages |
2018-09-16 02:22:43 | berker.peksag | create | |
|