contextlib — Context Manager Utilities — PyMOTW 3

The contextlib module contains utilities for working with context managers and the with statement.

Read more…

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.