[Python-checkins] r74588 - python/trunk/Doc/library/stdtypes.rst
georg.brandl
python-checkins at python.org
Sun Aug 30 10:35:01 CEST 2009
Author: georg.brandl
Date: Sun Aug 30 10:35:01 2009
New Revision: 74588
Log:
#6803: fix old name.
Modified:
python/trunk/Doc/library/stdtypes.rst
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst (original)
+++ python/trunk/Doc/library/stdtypes.rst Sun Aug 30 10:35:01 2009
@@ -2549,9 +2549,9 @@
their implementation of the context management protocol. See the
:mod:`contextlib` module for some examples.
-Python's :term:`generator`\s and the ``contextlib.contextfactory`` :term:`decorator`
+Python's :term:`generator`\s and the ``contextlib.contextmanager`` :term:`decorator`
provide a convenient way to implement these protocols. If a generator function is
-decorated with the ``contextlib.contextfactory`` decorator, it will return a
+decorated with the ``contextlib.contextmanager`` decorator, it will return a
context manager implementing the necessary :meth:`__enter__` and
:meth:`__exit__` methods, rather than the iterator produced by an undecorated
generator function.
More information about the Python-checkins
mailing list