This is an archived version of the course. Please find the latest version of the course on the main webpage.

Chapter 3: Using decorators

Other Python decorators

face Josiah Wang

Now that you understand that decorators are just functions, you can also examine the documentation of the different decorators you have used in our other lessons!

>>> help(classmethod)
>>> help(staticmethod)
>>> from dataclasses import dataclass
>>> help(dataclass)

If you want to explore more different ways you can use decorators, the Python Wiki contains a long list of example application of decorators. Explore these in your own time!