Vidyalelo
Python · Q7

Formatting and Decorators

Programming · Python · question 7

Q7

What is the purpose of the @wraps decorator in Python's functools module?

A.
Preserve original function's metadata
Answer
B.
Create wrappers for functions
C.
Decorate GUI elements
D.
Modify function arguments

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board