<AptiCode/>

Question 469: What does the@wrapsdecorator do?

tcs
wipro
infosys
general
aptitude
decorators
python-programming

The@wrapsdecorator is used to preserve the original metadata of a function, including its name, docstring, and other attributes, when creating a wrapper or decorator.