Intermediate Python: Master Decorators From Scratch
Learn Python decorators! Enhance your code with this practical introduction. Discover how to add functionality and improve code reusability. Perfect for Python developers of all levels.
Course Content
Intermediate Python: Master Decorators From Scratch is an all-levels Udemy course taught by Andy Bek. It runs 2h 52m, is taught in English, and includes a certificate of completion. Learners rate it 4.8 out of 5 from 198 reviews, with 17,065 students enrolled. It is a paid course, last updated August 2025.
Unlock the power of Python decorators with this comprehensive guide! This course provides a deep dive into Python decorators, starting with the fundamentals and progressing to advanced techniques. Whether you're a beginner or an experienced Python programmer looking to enhance your skills, this course will equip you with the knowledge and practical experience you need.
We'll build a strong foundation by exploring essential concepts:
- Closures: Understand how closures work and how they are fundamental to understanding decorators.
- First-Class Functions: Learn about functions as first-class citizens in Python and their role in creating decorators.
- Variadics: Explore how to handle functions with a variable number of arguments.
- Higher-Order Functions: Master the concept of higher-order functions, the building blocks of decorators.
Then, we'll move into the fascinating world of Python decorator implementation. You'll learn:
- Basic Decorators: Create simple decorators to modify function behavior.
- Decorating Parameterized Functions: Learn to create decorators that accept arguments.
- Chaining Decorators: Combine multiple decorators to achieve complex functionality.
- Decorating Functions With Variable Arity: Handle functions with a flexible number of arguments using decorators.
- Preserving Metadata of Decorated Functions: Understand how to maintain function information when using decorators.
Throughout the course, you'll solidify your understanding with practical coding assignments of increasing complexity. We'll also tackle real-world skill challenges, including:
- Logging Function Output: Implement decorators for detailed function logging.
- Timing Runtime Performance: Use decorators to measure and analyze function execution time.
- Caching Mechanisms: Create decorators to implement caching for improved performance.
- Mocked Authentication Flows: Apply decorators in creating robust and testable authentication systems.
This course is perfect for Python programmers seeking to master functional programming concepts or to leverage decorators as a powerful programming pattern. Start building more elegant, reusable, and maintainable Python code today!
Need a web app built? Hire the team behind TutorialSearch.io
We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.