Friday 11:30 a.m.–noon

Decorators: A Powerful Weapon in your Python Arsenal

Colton Myers

Audience level:
Intermediate
Category:
Python Core (language, stdlib, etc.)

Description

Decorators are an invaluable addition to anyone's arsenal of python tools and tricks. We will learn what a decorator is, how decorators are created, and then explore some of the cooler applications for decorators in our everyday projects.

Abstract

Decorators are one of the coolest constructs in Python. Although they aren't necessary in many python scripts/applications, there are certain problems that decorators solve beautifully. The average python programmer may have heard of decorators, may have even used them from time to time. But many python programmers don't know how decorators work, or often even how to construct them! This session will be a fairly in-depth exploration of decorators: how to construct them, how they work, and how to use them in your code. By the end of the session, you should have a moderate understanding of how decorators work, and should be able to use them in your own projects.