[issue26634] recursive_repr forgets to override __qualname__ of wrapper

Xiang Zhang report at bugs.python.org
Thu Mar 24 02:21:11 EDT 2016


Xiang Zhang added the comment:

Hi, Raymond, I've added the test to test the assigned attributes.
I use WRAPPER_ASSIGNMENTS in functools so we can keep them consistent. I don't know how to get the original func from the already decorated methods in this case so I define a new container.
If there are mistakes or better solution, I am willing to know.

----------
Added file: http://bugs.python.org/file42268/qualname_of_recursive_repr_in_reprlib_v2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26634>
_______________________________________


More information about the Python-bugs-list mailing list