+ 2

decorator

what is the use of decorater?i don’t understand it.

14th Dec 2020, 6:23 AM
Somasundaram Puspagaran
Somasundaram Puspagaran - avatar
4 Respuestas
+ 3
A decorator is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its structure. If you don't want to change or modify directly the Function, you can just use decorators to modify it without changing its code structure.
14th Dec 2020, 7:11 AM
noteve
noteve - avatar
+ 1
To add features on a existing function without modifying it
14th Dec 2020, 7:11 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
add functionality without modify, both functions or classes
14th Dec 2020, 9:03 AM
Kiwwi#
Kiwwi# - avatar
- 1
please answer
14th Dec 2020, 6:30 AM
Somasundaram Puspagaran
Somasundaram Puspagaran - avatar