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.

Copyright © 2018 ProTech. All Rights Reserved.

Sign In Create Account

Navigation

Social Media