mirror of https://github.com/python/cpython.git
#9760: clarify what context expression is.
This commit is contained in:
parent
0bb73b8be8
commit
3387f4887f
|
@ -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 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.
|
#. The context manager's :meth:`__exit__` is loaded for later use.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue