@@ -84,7 +84,7 @@ The :keyword:`!if` statement
84
84
============================
85
85
86
86
.. index ::
87
- ! statement: if
87
+ ! pair: statement; if
88
88
pair: keyword; elif
89
89
pair: keyword; else
90
90
single: : (colon); compound statement
@@ -109,7 +109,7 @@ The :keyword:`!while` statement
109
109
===============================
110
110
111
111
.. index ::
112
- ! statement: while
112
+ ! pair: statement; while
113
113
pair: keyword; else
114
114
pair: loop; statement
115
115
single: : (colon); compound statement
@@ -127,8 +127,8 @@ suite of the :keyword:`!else` clause, if present, is executed and the loop
127
127
terminates.
128
128
129
129
.. index ::
130
- statement: break
131
- statement: continue
130
+ pair: statement; break
131
+ pair: statement; continue
132
132
133
133
A :keyword: `break ` statement executed in the first suite terminates the loop
134
134
without executing the :keyword: `!else ` clause's suite. A :keyword: `continue `
@@ -142,7 +142,7 @@ The :keyword:`!for` statement
142
142
=============================
143
143
144
144
.. index ::
145
- ! statement: for
145
+ ! pair: statement; for
146
146
pair: keyword; in
147
147
pair: keyword; else
148
148
pair: target; list
@@ -167,8 +167,8 @@ the suite in the :keyword:`!else` clause,
167
167
if present, is executed, and the loop terminates.
168
168
169
169
.. index ::
170
- statement: break
171
- statement: continue
170
+ pair: statement; break
171
+ pair: statement; continue
172
172
173
173
A :keyword: `break ` statement executed in the first suite terminates the loop
174
174
without executing the :keyword: `!else ` clause's suite. A :keyword: `continue `
@@ -205,7 +205,7 @@ The :keyword:`!try` statement
205
205
=============================
206
206
207
207
.. index ::
208
- ! statement: try
208
+ ! pair: statement; try
209
209
pair: keyword; except
210
210
pair: keyword; finally
211
211
pair: keyword; else
@@ -390,9 +390,9 @@ cannot appear in an :keyword:`!except*` clause.
390
390
391
391
.. index ::
392
392
pair: keyword; else
393
- statement: return
394
- statement: break
395
- statement: continue
393
+ pair: statement; return
394
+ pair: statement; break
395
+ pair: statement; continue
396
396
397
397
.. _except_else :
398
398
@@ -436,9 +436,9 @@ The exception information is not available to the program during execution of
436
436
the :keyword: `!finally ` clause.
437
437
438
438
.. index ::
439
- statement: return
440
- statement: break
441
- statement: continue
439
+ pair: statement; return
440
+ pair: statement; break
441
+ pair: statement; continue
442
442
443
443
When a :keyword: `return `, :keyword: `break ` or :keyword: `continue ` statement is
444
444
executed in the :keyword: `try ` suite of a :keyword: `!try `...\ :keyword: `!finally `
@@ -470,7 +470,7 @@ The :keyword:`!with` statement
470
470
==============================
471
471
472
472
.. index ::
473
- ! statement: with
473
+ ! pair: statement; with
474
474
pair: keyword; as
475
475
single: as; with statement
476
476
single: , (comma); with statement
@@ -587,7 +587,7 @@ The :keyword:`!match` statement
587
587
===============================
588
588
589
589
.. index ::
590
- ! statement: match
590
+ ! pair: statement; match
591
591
! pair: keyword; case
592
592
! single: pattern matching
593
593
pair: keyword; if
@@ -1192,7 +1192,7 @@ Function definitions
1192
1192
====================
1193
1193
1194
1194
.. index ::
1195
- statement: def
1195
+ pair: statement; def
1196
1196
pair: function; definition
1197
1197
pair: function; name
1198
1198
pair: name; binding
@@ -1366,7 +1366,7 @@ Class definitions
1366
1366
1367
1367
.. index ::
1368
1368
pair: object; class
1369
- statement: class
1369
+ pair: statement; class
1370
1370
pair: class; definition
1371
1371
pair: class; name
1372
1372
pair: name; binding
@@ -1465,7 +1465,7 @@ Coroutines
1465
1465
1466
1466
.. versionadded :: 3.5
1467
1467
1468
- .. index :: statement: async def
1468
+ .. index :: pair: statement; async def
1469
1469
.. _`async def` :
1470
1470
1471
1471
Coroutine function definition
@@ -1499,7 +1499,7 @@ An example of a coroutine function::
1499
1499
``await `` and ``async `` are now keywords; previously they were only
1500
1500
treated as such inside the body of a coroutine function.
1501
1501
1502
- .. index :: statement: async for
1502
+ .. index :: pair: statement; async for
1503
1503
.. _`async for` :
1504
1504
1505
1505
The :keyword: `!async for ` statement
@@ -1544,7 +1544,7 @@ It is a :exc:`SyntaxError` to use an ``async for`` statement outside the
1544
1544
body of a coroutine function.
1545
1545
1546
1546
1547
- .. index :: statement: async with
1547
+ .. index :: pair: statement; async with
1548
1548
.. _`async with` :
1549
1549
1550
1550
The :keyword: `!async with ` statement
0 commit comments