Skip to content

Latest commit

 

History

History
4 lines (2 loc) · 254 Bytes

File metadata and controls

4 lines (2 loc) · 254 Bytes

Decorator

In Python, basically everything is an object and functions are regarded as first-class objects. A decorator is a function that takes another function as an argument, and returns a new function that modifies or decorates the input function.