Python Decorators

23-minute Python Workshop

About this Workshop

Decorators in Python are a common way of wrapping repeated functionality around your functions, methods, and classes. They're also one of the trickier things to learn how to build yourself. Let's see how to construct our own decorators and learn a bit about how Python handles functions, scope, and closures.

Teacher

Kenneth Love

Besides teaching Python at Treehouse, Kenneth Love is a husband & father. He created a few popular Python libraries, worked at most levels of the web stack, & was the Creative Director of a newspaper. He likes board games, whiskey, activism, & dry humor.