Search notes:

Python standard library: contextlib

The contextlib library offers functionality that is used with and for context managers, for example the contextmanager decorator.

See also

The with statement
standard library

Index