Are decorators of any use in Python? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Are decorators of any use in Python?

Explain in layman's term

26th May 2020, 12:14 PM
swaggy tarret
1 Resposta
+ 1
DecoratorsĀ are very powerful andĀ usefulĀ tool inĀ PythonĀ since it allows programmers to modify the behavior of function or class.Ā DecoratorsĀ allow us to wrap another function in order to extend the behavior of wrapped function, without permanently modifying it
27th May 2020, 9:03 AM
Gaurav Kulkarni
Gaurav Kulkarni - avatar