@@ -71,7 +71,7 @@ An identifier occurring as an atom is a name. See section :ref:`identifiers`
7171for lexical definition and section :ref: `naming ` for documentation of naming and
7272binding.
7373
74- .. index :: exception: NameError
74+ .. index :: pair: exception; NameError
7575
7676When the name is bound to an object, evaluation of the atom yields that object.
7777When 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.
534534Note that calling any of the generator methods below when the generator
535535is already executing raises a :exc: `ValueError ` exception.
536536
537- .. index :: exception: StopIteration
537+ .. index :: pair: exception; StopIteration
538538
539539
540540.. method :: generator.__next__()
@@ -589,7 +589,7 @@ is already executing raises a :exc:`ValueError` exception.
589589 The second signature \( type\[ , value\[ , traceback\]\]\) is deprecated and
590590 may be removed in a future version of Python.
591591
592- .. index :: exception: GeneratorExit
592+ .. index :: pair: exception; GeneratorExit
593593
594594
595595.. method :: generator.close()
@@ -711,7 +711,7 @@ This subsection describes the methods of an asynchronous generator iterator,
711711which are used to control the execution of a generator function.
712712
713713
714- .. index :: exception: StopAsyncIteration
714+ .. index :: pair: exception; StopAsyncIteration
715715
716716.. coroutinemethod :: agen.__anext__()
717717
@@ -763,7 +763,7 @@ which are used to control the execution of a generator function.
763763 The second signature \( type\[ , value\[ , traceback\]\]\) is deprecated and
764764 may be removed in a future version of Python.
765765
766- .. index :: exception: GeneratorExit
766+ .. index :: pair: exception; GeneratorExit
767767
768768
769769.. coroutinemethod :: agen.aclose()
@@ -810,7 +810,7 @@ An attribute reference is a primary followed by a period and a name:
810810 attributeref: `primary ` "." `identifier `
811811
812812.. index ::
813- exception: AttributeError
813+ pair: exception; AttributeError
814814 pair: object; module
815815 pair: object; list
816816
@@ -1241,7 +1241,7 @@ applies to integral numbers or to custom objects that override the
12411241
12421242
12431243
1244- .. index :: exception: TypeError
1244+ .. index :: pair: exception; TypeError
12451245
12461246In all three cases, if the argument does not have the proper type, a
12471247:exc: `TypeError ` exception is raised.
@@ -1288,7 +1288,7 @@ builtin Python types implement this operator.
12881288.. versionadded :: 3.5
12891289
12901290.. index ::
1291- exception: ZeroDivisionError
1291+ pair: exception; ZeroDivisionError
12921292 single: division
12931293 pair: operator; / (slash)
12941294 pair: operator; //
@@ -1377,7 +1377,7 @@ the left or right by the number of bits given by the second argument.
13771377This operation can be customized using the special :meth: `__lshift__ ` and
13781378:meth: `__rshift__ ` methods.
13791379
1380- .. index :: exception: ValueError
1380+ .. index :: pair: exception; ValueError
13811381
13821382A right shift by *n * bits is defined as floor division by ``pow(2,n) ``. A left
13831383shift by *n * bits is defined as multiplication with ``pow(2,n) ``.
0 commit comments