diff options
author | Georg Brandl <georg@python.org> | 2010-09-03 22:40:02 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-09-03 22:40:02 (GMT) |
commit | 3387f4887fee9968ef9c709f9d8befdeb4e1e56c (patch) | |
tree | 33c5ca5f5a5a7372be68fc8917620be109cf6ed7 /Doc/reference/compound_stmts.rst | |
parent | 0bb73b8be8b4bf6b198ec86124424b3078c6c9c0 (diff) | |
download | cpython-3387f4887fee9968ef9c709f9d8befdeb4e1e56c.zip cpython-3387f4887fee9968ef9c709f9d8befdeb4e1e56c.tar.gz cpython-3387f4887fee9968ef9c709f9d8befdeb4e1e56c.tar.bz2 |
#9760: clarify what context expression is.
Diffstat (limited to 'Doc/reference/compound_stmts.rst')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index ecd483d..4e6086f 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. |