—A context manager exploiting Python's _with_ statement.
Python’s with statement is defined in PEP 343 – The “with” Statement.
It introduces two methods
that are invoked upon entry and exit of the with statement. PEP 343 was written in 2005.
If you haven’t read PEP 343 the discussion on the semantics of with is worth your time.