Anonymous committed ac53874

Added a couple of cross-refs between the context manager/with statement sections.

  • Participants
  • Parent commits fae559e

Comments (0)

Files changed (2)


 .. versionadded:: 2.5
 This module provides utilities for common tasks involving the :keyword:`with`
+statement. For more information see also :ref:`typecontextmanager` and
 Functions provided:


 Python defines several context managers to support easy thread synchronisation,
 prompt closure of files or other objects, and simpler manipulation of the active
 decimal arithmetic context. The specific types are not treated specially beyond
-their implementation of the context management protocol.
+their implementation of the context management protocol. See the
+:mod:`contextlib` module for some examples.
 Python's generators and the ``contextlib.contextfactory`` decorator provide a
 convenient way to implement these protocols.  If a generator function is