mirror of
https://github.com/python/cpython.git
synced 2025-09-11 19:27:07 +00:00
"Compound statement" docs: Fix with-statement step indexing (#100286)
Back in commit 226e6e7d43
an item was added to the list, renumbering all the rest of the
items, but the forward-reference wasn't updated to match.
This commit is contained in:
parent
9076455d1b
commit
f23236a92d
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ The execution of the :keyword:`with` statement with one "item" proceeds as follo
|
|||
method returns without an error, then :meth:`__exit__` will always be
|
||||
called. Thus, if an error occurs during the assignment to the target list,
|
||||
it will be treated the same as an error occurring within the suite would
|
||||
be. See step 6 below.
|
||||
be. See step 7 below.
|
||||
|
||||
#. The suite is executed.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue