A decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it. Decorators can be used to define some general behavior that is common to many methods in a separate function. In this article, we will see how powerful decorators are.

β€’3m read timeβ€’From python.plainenglish.io
Post cover image
Table of contents
Improve Your Code with DecoratorsWhat is a decorator?Decorators with parametersConclusion
2 Comments

Sort: