Please explain when is the python decorator used?



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

Post New Answer

More Python Interview Questions

What is dogpile effect? How can you prevent this effect?

1 Answers  


What are built in types in python?

1 Answers  


Tell me what is flask & its benefits?

1 Answers  


How can I make a time delay in python?

1 Answers  


What is a function in python programming?

1 Answers  


How do I use python idle?

1 Answers  


What is xrange in python?

1 Answers  


Differentiate between deep and shallow copy?

1 Answers  


What are membership?

1 Answers  


what's wrong with import all?

1 Answers  


What is a function?

1 Answers  


Write a program to convert all strings in list to integers?

1 Answers  


Categories