[issue46761] functools.update_wrapper breaks the signature of functools.partial objects
Nick Coghlan
report at bugs.python.org
Sat Mar 26 08:36:12 EDT 2022
Nick Coghlan <ncoghlan at gmail.com> added the comment:
On the historical front, wraps & update_wrapper were only designed to handle true wrapper functions (i.e. those that don't change the calling signature).
For anything else (including partial), I considered it unlikely that the doc string would still be accurate, let alone any of the other metadata, so I didn't worry about supporting them.
That sais, if it's practical to make the results of combining the two less broken then I agree it would make sense to do so.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46761>
_______________________________________
More information about the Python-bugs-list
mailing list