What is a decorator?
A decorator is the name of a design pattern. Decorators dynamically alter the functionality of a function, method, or class without having to subclass or change the source code of the decorated class. In the Python sense, a decorator is something else, it includes the design pattern, but it goes further, Bruce Eckel assimilates them to Lisp macros. Decorators and their use in our programs help …