summaryrefslogtreecommitdiffstats
path: root/Doc/library/contextlib.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-02 14:58:50 (GMT)
committerGeorg Brandl <georg@python.org>2007-12-02 14:58:50 (GMT)
commit584265b0010c660af21d3b22ac18fff0da678dd0 (patch)
treee8d6c884efe654560c7118d61b14296008a6f5b3 /Doc/library/contextlib.rst
parentb15a8df51919ae428023df79fd078263d4d23c88 (diff)
downloadcpython-584265b0010c660af21d3b22ac18fff0da678dd0.zip
cpython-584265b0010c660af21d3b22ac18fff0da678dd0.tar.gz
cpython-584265b0010c660af21d3b22ac18fff0da678dd0.tar.bz2
Add more entries to the glossary.
Written by Jeff Wheeler for GHOP.
Diffstat (limited to 'Doc/library/contextlib.rst')
-rw-r--r--Doc/library/contextlib.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index a4b271f..11af432 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -17,9 +17,9 @@ Functions provided:
.. function:: contextmanager(func)
- This function is a decorator that can be used to define a factory function for
- :keyword:`with` statement context managers, without needing to create a class or
- separate :meth:`__enter__` and :meth:`__exit__` methods.
+ This function is a :term:`decorator` that can be used to define a factory
+ function for :keyword:`with` statement context managers, without needing to
+ create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
A simple example (this is not recommended as a real way of generating HTML!)::