Module 15 covers two tools that professional Python code uses constantly. Decorators add behaviour to a function or class without changing its code, and context managers make sure that clean-up happens whatever goes wrong. By the end you can write both, read the ones in other people’s code, and know the habits that keep them tidy.
More lessons in Complete Python Programming