Python: Decorators Explained

Wishlist Share

About Course

Understand what the @ symbol above a Python function really does. You will see how functions can be passed around like any other value, write your own decorators with functools.wraps, and use built-in decorators such as @property, @staticmethod and @functools.cache.

Tutwoo is an independent learning provider. This course is general training based on the official Python documentation. It is not produced or endorsed by the Python Software Foundation and is not an accredited qualification.

© 2026 Tutwoo UK Limited. This course was created in-house by Tutwoo and is our original work. It is for your own learning only: please do not copy, share, record or resell it.

What Will You Learn?

  • Explain what a decorator is and what the @ syntax means
  • Write a decorator that wraps any function safely with functools.wraps
  • Write decorators that take their own arguments
  • Use common built-in decorators such as @property and @cache

Course Content

Course Lessons

  • Functions are objects: the idea behind decorators
  • Writing your own decorator properly
  • Built-in decorators you will meet

Sources & Further Reading
The official guidance this course is based on.

Final Assessment

Student Ratings & Reviews

No Review Yet
No Review Yet

Want to receive push notifications for all major on-site activities?

✕