Python Decorators 101
Chris Bailey
20 Lessons
1h 7m
intermediate
python
In this course on Python decorators, you’ll learn what they are and how to create and use them. Decorators provide a simple syntax for calling higher-order functions in Python. By definition, a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it.
Section 1: Functions
6 Lessons ⋅ 13m
This section covers what functions are and how they work.
2. An Example Function (02:45)
4. Inner Functions (02:37)
6. Section 1 Review (00:56)
Section 2: Decorators
8 Lessons ⋅ 28m
In this section, you'll see several examples of how to use decorators with different types of functions.
1. Section 2 Overview (00:31)
2. Simple Decorators (06:16)
3. Syntactic Sugar (02:53)
4. Reusing Decorators (02:37)
7. Who Are You, Really? (05:45)
8. Section 2 Review (01:20)
Section 3: Real-World Examples
6 Lessons ⋅ 25m
This section covers a few practical examples of how decorators can be used.
1. Section 3 Overview (02:09)
About Chris Bailey
Chris is an avid Pythonista and creates video tutorials for Real Python. He is a programmer and data analyst. He creates music under the name Tripnet. Chris lives in Hawaii with his wife and two dogs.
» More about Chris





