Python Programming - Decorators - Discussion
Discussion Forum : Decorators - General Questions (Q.No. 25)
25.
What is the primary purpose of the
@functools.cached_property
decorator?
Answer: Option
Explanation:
The
@functools.cached_property
decorator is used to cache the result of a method and return the cached value on subsequent calls, improving performance by avoiding redundant computations.
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