First page Back Continue Last page Overview Graphics

Decorators

A decorator in Python is any callable Python object, that is used to modify a function or a class.

We have two different kinds of decorators in Python:

- Function decorators

- Class decorators