Message262326
In reprlib.recursive_repr, it seems __qualname__ is forgotten. Giving the example in reprlib document, it gives a strange result 'recursive_repr.<locals>.decorating_function.<locals>.wrapper' of Mylist.__repr__.__qualname__.
I simply add the assignment of __qualname__. But I doubt the treatment of __module__, __doc__, __name__, __qualname__ will raise AttributeError when they don't exist in user_function. Is this the desired behaviour or we'd better treat them like functools.update_wrapper, catch and then ignore the error. |
|
| Date |
User |
Action |
Args |
| 2016-03-24 04:09:36 | xiang.zhang | set | recipients:
+ xiang.zhang |
| 2016-03-24 04:09:36 | xiang.zhang | set | messageid: <1458792576.69.0.965727650976.issue26634@psf.upfronthosting.co.za> |
| 2016-03-24 04:09:36 | xiang.zhang | link | issue26634 messages |
| 2016-03-24 04:09:36 | xiang.zhang | create | |
|