Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3387f48

Browse files
committed
#9760: clarify what context expression is.
1 parent 0bb73b8 commit 3387f48

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ usage patterns to be encapsulated for convenient reuse.
350350

351351
The execution of the :keyword:`with` statement with one "item" proceeds as follows:
352352

353-
#. The context expression is evaluated to obtain a context manager.
353+
#. The context expression (the expression given in the :token:`with_item`) is
354+
evaluated to obtain a context manager.
354355

355356
#. The context manager's :meth:`__exit__` is loaded for later use.
356357

0 commit comments

Comments
 (0)