Python Programming - Decorators - Discussion
Discussion Forum : Decorators - General Questions (Q.No. 19)
19.
What is the purpose of the
@functools.lru_cache
decorator's typed
parameter?
Answer: Option
Explanation:
The
@functools.lru_cache
decorator's typed
parameter, when set to True
, uses a different cache for each distinct data type, preventing collisions between values of different types.
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