Contexter: A better contextlib
copied from cf-staging / contexterContexter is a full replacement of the contextlib http://docs.python.org/3/library/contextlib.html standard library module. It comes with more features, a nicer API and full support for Python 2.5 up to 3.x from a single source file. To keep it short: Contexter allows you to nest and stack context managers in an easy and intuitive way.