summaryrefslogtreecommitdiffstats
path: root/Doc/library/contextlib.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-21 10:52:38 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-21 10:52:38 (GMT)
commitcf3fb259329eedfa9d2c802b2ea5ced287c21e78 (patch)
treebd09350c4ac4d66064526573c19ebbcd27f77279 /Doc/library/contextlib.rst
parentbb75e4e5d243a32cf31b91543b06b829c63e2c70 (diff)
downloadcpython-cf3fb259329eedfa9d2c802b2ea5ced287c21e78.zip
cpython-cf3fb259329eedfa9d2c802b2ea5ced287c21e78.tar.gz
cpython-cf3fb259329eedfa9d2c802b2ea5ced287c21e78.tar.bz2
Add :term: for generators.
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 fffb99c..a4b271f 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -39,9 +39,9 @@ Functions provided:
foo
</h1>
- The function being decorated must return a generator-iterator when called. This
- iterator must yield exactly one value, which will be bound to the targets in the
- :keyword:`with` statement's :keyword:`as` clause, if any.
+ The function being decorated must return a :term:`generator`-iterator when
+ called. This iterator must yield exactly one value, which will be bound to
+ the targets in the :keyword:`with` statement's :keyword:`as` clause, if any.
At the point where the generator yields, the block nested in the :keyword:`with`
statement is executed. The generator is then resumed after the block is exited.