@@ -84,7 +84,7 @@ The :keyword:`!if` statement
8484============================
8585
8686.. index ::
87- ! statement: if
87+ ! pair: statement; if
8888 pair: keyword; elif
8989 pair: keyword; else
9090 single: : (colon); compound statement
@@ -109,7 +109,7 @@ The :keyword:`!while` statement
109109===============================
110110
111111.. index ::
112- ! statement: while
112+ ! pair: statement; while
113113 pair: keyword; else
114114 pair: loop; statement
115115 single: : (colon); compound statement
@@ -127,8 +127,8 @@ suite of the :keyword:`!else` clause, if present, is executed and the loop
127127terminates.
128128
129129.. index ::
130- statement: break
131- statement: continue
130+ pair: statement; break
131+ pair: statement; continue
132132
133133A :keyword: `break ` statement executed in the first suite terminates the loop
134134without executing the :keyword: `!else ` clause's suite. A :keyword: `continue `
@@ -142,7 +142,7 @@ The :keyword:`!for` statement
142142=============================
143143
144144.. index ::
145- ! statement: for
145+ ! pair: statement; for
146146 pair: keyword; in
147147 pair: keyword; else
148148 pair: target; list
@@ -167,8 +167,8 @@ the suite in the :keyword:`!else` clause,
167167if present, is executed, and the loop terminates.
168168
169169.. index ::
170- statement: break
171- statement: continue
170+ pair: statement; break
171+ pair: statement; continue
172172
173173A :keyword: `break ` statement executed in the first suite terminates the loop
174174without executing the :keyword: `!else ` clause's suite. A :keyword: `continue `
@@ -205,7 +205,7 @@ The :keyword:`!try` statement
205205=============================
206206
207207.. index ::
208- ! statement: try
208+ ! pair: statement; try
209209 pair: keyword; except
210210 pair: keyword; finally
211211 pair: keyword; else
@@ -390,9 +390,9 @@ cannot appear in an :keyword:`!except*` clause.
390390
391391.. index ::
392392 pair: keyword; else
393- statement: return
394- statement: break
395- statement: continue
393+ pair: statement; return
394+ pair: statement; break
395+ pair: statement; continue
396396
397397.. _except_else :
398398
@@ -436,9 +436,9 @@ The exception information is not available to the program during execution of
436436the :keyword: `!finally ` clause.
437437
438438.. index ::
439- statement: return
440- statement: break
441- statement: continue
439+ pair: statement; return
440+ pair: statement; break
441+ pair: statement; continue
442442
443443When a :keyword: `return `, :keyword: `break ` or :keyword: `continue ` statement is
444444executed in the :keyword: `try ` suite of a :keyword: `!try `...\ :keyword: `!finally `
@@ -470,7 +470,7 @@ The :keyword:`!with` statement
470470==============================
471471
472472.. index ::
473- ! statement: with
473+ ! pair: statement; with
474474 pair: keyword; as
475475 single: as; with statement
476476 single: , (comma); with statement
@@ -587,7 +587,7 @@ The :keyword:`!match` statement
587587===============================
588588
589589.. index ::
590- ! statement: match
590+ ! pair: statement; match
591591 ! pair: keyword; case
592592 ! single: pattern matching
593593 pair: keyword; if
@@ -1192,7 +1192,7 @@ Function definitions
11921192====================
11931193
11941194.. index ::
1195- statement: def
1195+ pair: statement; def
11961196 pair: function; definition
11971197 pair: function; name
11981198 pair: name; binding
@@ -1366,7 +1366,7 @@ Class definitions
13661366
13671367.. index ::
13681368 pair: object; class
1369- statement: class
1369+ pair: statement; class
13701370 pair: class; definition
13711371 pair: class; name
13721372 pair: name; binding
@@ -1465,7 +1465,7 @@ Coroutines
14651465
14661466.. versionadded :: 3.5
14671467
1468- .. index :: statement: async def
1468+ .. index :: pair: statement; async def
14691469.. _`async def` :
14701470
14711471Coroutine function definition
@@ -1499,7 +1499,7 @@ An example of a coroutine function::
14991499 ``await `` and ``async `` are now keywords; previously they were only
15001500 treated as such inside the body of a coroutine function.
15011501
1502- .. index :: statement: async for
1502+ .. index :: pair: statement; async for
15031503.. _`async for` :
15041504
15051505The :keyword: `!async for ` statement
@@ -1544,7 +1544,7 @@ It is a :exc:`SyntaxError` to use an ``async for`` statement outside the
15441544body of a coroutine function.
15451545
15461546
1547- .. index :: statement: async with
1547+ .. index :: pair: statement; async with
15481548.. _`async with` :
15491549
15501550The :keyword: `!async with ` statement
0 commit comments