Context Managers the Easy Way

A brief introduction to context managers. Simeon Franklin, former Instructor at Marakana and current Instructor at Twitter University, talks about the compact interfacecontextlib.contextmanager. He introduces the concept, then describes what it does to make context managers (the with statement in Python) easy to write.

This talk was delivered at the San Francisco Python Meetup Group.

Slides available here.

Published September 27, 2013