@@ -71,7 +71,7 @@ An identifier occurring as an atom is a name. See section :ref:`identifiers`
71
71
for lexical definition and section :ref: `naming ` for documentation of naming and
72
72
binding.
73
73
74
- .. index :: exception: NameError
74
+ .. index :: pair: exception; NameError
75
75
76
76
When the name is bound to an object, evaluation of the atom yields that object.
77
77
When a name is not bound, an attempt to evaluate it raises a :exc: `NameError `
@@ -534,7 +534,7 @@ be used to control the execution of a generator function.
534
534
Note that calling any of the generator methods below when the generator
535
535
is already executing raises a :exc: `ValueError ` exception.
536
536
537
- .. index :: exception: StopIteration
537
+ .. index :: pair: exception; StopIteration
538
538
539
539
540
540
.. method :: generator.__next__()
@@ -589,7 +589,7 @@ is already executing raises a :exc:`ValueError` exception.
589
589
The second signature \( type\[ , value\[ , traceback\]\]\) is deprecated and
590
590
may be removed in a future version of Python.
591
591
592
- .. index :: exception: GeneratorExit
592
+ .. index :: pair: exception; GeneratorExit
593
593
594
594
595
595
.. method :: generator.close()
@@ -711,7 +711,7 @@ This subsection describes the methods of an asynchronous generator iterator,
711
711
which are used to control the execution of a generator function.
712
712
713
713
714
- .. index :: exception: StopAsyncIteration
714
+ .. index :: pair: exception; StopAsyncIteration
715
715
716
716
.. coroutinemethod :: agen.__anext__()
717
717
@@ -763,7 +763,7 @@ which are used to control the execution of a generator function.
763
763
The second signature \( type\[ , value\[ , traceback\]\]\) is deprecated and
764
764
may be removed in a future version of Python.
765
765
766
- .. index :: exception: GeneratorExit
766
+ .. index :: pair: exception; GeneratorExit
767
767
768
768
769
769
.. coroutinemethod :: agen.aclose()
@@ -810,7 +810,7 @@ An attribute reference is a primary followed by a period and a name:
810
810
attributeref: `primary ` "." `identifier `
811
811
812
812
.. index ::
813
- exception: AttributeError
813
+ pair: exception; AttributeError
814
814
pair: object; module
815
815
pair: object; list
816
816
@@ -1241,7 +1241,7 @@ applies to integral numbers or to custom objects that override the
1241
1241
1242
1242
1243
1243
1244
- .. index :: exception: TypeError
1244
+ .. index :: pair: exception; TypeError
1245
1245
1246
1246
In all three cases, if the argument does not have the proper type, a
1247
1247
:exc: `TypeError ` exception is raised.
@@ -1288,7 +1288,7 @@ builtin Python types implement this operator.
1288
1288
.. versionadded :: 3.5
1289
1289
1290
1290
.. index ::
1291
- exception: ZeroDivisionError
1291
+ pair: exception; ZeroDivisionError
1292
1292
single: division
1293
1293
pair: operator; / (slash)
1294
1294
pair: operator; //
@@ -1377,7 +1377,7 @@ the left or right by the number of bits given by the second argument.
1377
1377
This operation can be customized using the special :meth: `__lshift__ ` and
1378
1378
:meth: `__rshift__ ` methods.
1379
1379
1380
- .. index :: exception: ValueError
1380
+ .. index :: pair: exception; ValueError
1381
1381
1382
1382
A right shift by *n * bits is defined as floor division by ``pow(2,n) ``. A left
1383
1383
shift by *n * bits is defined as multiplication with ``pow(2,n) ``.
0 commit comments