This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients xiang.zhang
Date 2016-03-24.04:09:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458792576.69.0.965727650976.issue26634@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-03-24 04:09:36xiang.zhangsetrecipients: + xiang.zhang
2016-03-24 04:09:36xiang.zhangsetmessageid: <1458792576.69.0.965727650976.issue26634@psf.upfronthosting.co.za>
2016-03-24 04:09:36xiang.zhanglinkissue26634 messages
2016-03-24 04:09:36xiang.zhangcreate