Python Programming - Decorators - Discussion
Discussion Forum : Decorators - General Questions (Q.No. 3)
3.
What does the
@wraps
decorator do?
Answer: Option
Explanation:
The
@wraps
decorator is used to preserve the original metadata of a function, including its name, docstring, and other attributes, when creating a wrapper or decorator.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers