I am wondering why meta data (e.g. __name__
, __doc__
) for the wrapped method/function by partial
is not inherited by default. Instead, functools
provides the update_wrapper
function.
Why it is not done by default is not mentioned anywhere (as far as I could see) e.g. here and many tutorials on functools.partial
talk about how to "solve the issue" of a missing __name__
.
Are there examples where inheriting this information causes problems/confusion?