What are decorators in Python?

Question

Explain with examples

in progress 0
Pragya Rani 55 years 1 Answer 839 views Contributor 0

Answer ( 1 )

  1. Decorators belong most probably to the most beautiful and most powerful design possibilities in Python, but at the same time the concept is considered by many as complicated to get into. To be precise, the usage of decorators is very easy, but writing decorators can be complicated, especially if you are not experienced with decorators and some functional programming concepts.

Leave an answer

Browse
Browse