Please explain when is the python decorator used?
Answer / Firdos Khan
Python decorators are special functions that allow you to extend the functionality of other functions by modifying their behavior. They can be used for many purposes such as error handling, logging, caching, and more. Decorators often take the original function as an argument and return a modified version of it.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is dogpile effect? How can you prevent this effect?
What are built in types in python?
Tell me what is flask & its benefits?
How can I make a time delay in python?
What is a function in python programming?
How do I use python idle?
What is xrange in python?
Differentiate between deep and shallow copy?
What are membership?
what's wrong with import all?
What is a function?
Write a program to convert all strings in list to integers?