Python Programming - Decorators - Discussion

Discussion Forum : Decorators - General Questions (Q.No. 16)
16.
Which decorator is commonly used for retrying a function with a specified delay in case of failure?
@functools.retry
@functools.retry_on_fail
@functools.retriable
@functools.retry_with_delay
Answer: Option
Explanation:
There is no built-in @functools.retry decorator in Python, but custom decorators can be created for retrying a function with a specified delay in case of failure.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.