Question d’entretien chez ZOOMi Technologies

What is decorator in python?

Réponse à la question d'entretien

Utilisateur anonyme

16 mai 2024

In programming, particularly in Python, a decorator is a design pattern that allows you to modify the behavior of a function or method without changing its code. Decorators are typically used to add functionality to functions, such as logging, access control, memoization, or instrumentation.