summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-09-03 22:40:02 +0000
committerGeorg Brandl <georg@python.org>2010-09-03 22:40:02 +0000
commit3387f4887fee9968ef9c709f9d8befdeb4e1e56c (patch)
tree33c5ca5f5a5a7372be68fc8917620be109cf6ed7
parent0bb73b8be8b4bf6b198ec86124424b3078c6c9c0 (diff)
downloadcpython-git-3387f4887fee9968ef9c709f9d8befdeb4e1e56c.tar.gz
#9760: clarify what context expression is.
-rw-r--r--Doc/reference/compound_stmts.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index ecd483d25a..4e6086fe06 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -350,7 +350,8 @@ usage patterns to be encapsulated for convenient reuse.
The execution of the :keyword:`with` statement with one "item" proceeds as follows:
-#. The context expression is evaluated to obtain a context manager.
+#. The context expression (the expression given in the :token:`with_item`) is
+ evaluated to obtain a context manager.
#. The context manager's :meth:`__exit__` is loaded for later use.