Pybites Logo

Decorators and Context Managers Learning Path

Decorators and Context Managers badge

Your Python toolkit won't be the same again after learning about two important patterns: decorators and context managers. Ready to become a Ninja? For decorators you can check out our Learning Python Decorators by Example article but most important is to get coding!

Created on: Aug 15, 2019

Bites in this Path:

# Title
1 Create a sandwich decorator
2 Write a decorator with argument
3 Write a login_required decorator
4 Write a numbers validation decorator
5 Suppressing exceptions
6 Capture stdout
7 Write a context manager
8 The singledispatch countdown challenge
9 Write a performance monitoring context manager
10 Manipulate string decorator
11 Cached property decorator
12 Write a retry decorator