What is a decorator?

Questions & AnswersCategory: PythonWhat is a decorator?
Geek Boy Staff asked 2 years ago

What is a decorator?
a. A decorator is a built-in data type in Python.
b. A decorator is a design pattern in Python that allows the user to add new functionality to an existing object without modifying its structure.
c. A decorator is another form of comments that is taken into account when creating documentation.

1 Answers
Geek Boy Staff answered 2 years ago