Python Programming - Decorators - Discussion
Discussion Forum : Decorators - General Questions (Q.No. 7)
7.
What is the primary purpose of the
@functools.singledispatch
decorator?
Answer: Option
Explanation:
The
@functools.singledispatch
decorator in Python is used to enable function overloading based on the type of the first argument.
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