+ 1
How do decorators work in python?
Explane me please
2 Answers
+ 6
The "decorators" we talk about with concern to Python are not exactly the same thing as the DecoratorPattern. A Python decorator is a specific change to the Python syntax that allows us to more conveniently alter functions and methods (and possibly classes in a future version). This supports more readable applications of the DecoratorPattern but also other uses as well.
source: https://wiki.python.org/moin/PythonDecorators