Vidyalelo
Python · Q43

Formatting and Decorators

Programming · Python · question 43

Q43

In Python, what is the role of the @functools.lru_cache decorator?

A.
Cache function results
Answer
B.
Decorate GUI elements
C.
Convert functions to methods
D.
Create wrappers for functions

Answer: Option A

Solution

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