1👍
✅
It changes the innermost function (_view
) so it appears to have the same name, attributes, and documentation as the function it wraps. This aids when using help()
in the Python interpreter, and makes stack traces more clear.
(Note: The same thing is basically done by the functools.wraps
decorator included in the stdlib.)
Source:stackexchange.com