[Python-checkins] "Compound statement" docs: Fix with-statement step indexing (GH-100286)

miss-islington webhook-mailer at python.org
Fri Dec 16 14:02:46 EST 2022


https://github.com/python/cpython/commit/0f610202553744deef4a2d639ed53a9793a87e72
commit: 0f610202553744deef4a2d639ed53a9793a87e72
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-12-16T11:02:41-08:00
summary:

"Compound statement" docs: Fix with-statement step indexing (GH-100286)


Back in commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832
an item was added to the list, renumbering all the rest of the
items, but the forward-reference wasn't updated to match.
(cherry picked from commit f23236a92d8796ae91772adaf27c3485fda963e8)

Co-authored-by: Frank Dana <ferdnyc at gmail.com>

files:
M Doc/reference/compound_stmts.rst

diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 93f5682f3f43..58b88c4d37f1 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -416,7 +416,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.
 



More information about the Python-checkins mailing list