Skip to content

Commit 9a42d1d

Browse files
committed
Name the notes
1 parent bb79484 commit 9a42d1d

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

Doc/c-api/exceptions.rst

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,16 +1002,16 @@ For completeness, here are all the variables:
10021002
* Notes
10031003
* * .. c:var:: PyObject *PyExc_BaseException
10041004
* :exc:`BaseException`
1005-
* [1]_
1005+
* [base]_
10061006
* * .. c:var:: PyObject *PyExc_BaseExceptionGroup
10071007
* :exc:`BaseExceptionGroup`
1008-
* [1]_
1008+
* [base]_
10091009
* * .. c:var:: PyObject *PyExc_Exception
10101010
* :exc:`Exception`
1011-
* [1]_
1011+
* [base]_
10121012
* * .. c:var:: PyObject *PyExc_ArithmeticError
10131013
* :exc:`ArithmeticError`
1014-
* [1]_
1014+
* [base]_
10151015
* * .. c:var:: PyObject *PyExc_AssertionError
10161016
* :exc:`AssertionError`
10171017
*
@@ -1080,7 +1080,7 @@ For completeness, here are all the variables:
10801080
*
10811081
* * .. c:var:: PyObject *PyExc_LookupError
10821082
* :exc:`LookupError`
1083-
* [1]_
1083+
* [base]_
10841084
* * .. c:var:: PyObject *PyExc_MemoryError
10851085
* :exc:`MemoryError`
10861086
*
@@ -1098,7 +1098,7 @@ For completeness, here are all the variables:
10981098
*
10991099
* * .. c:var:: PyObject *PyExc_OSError
11001100
* :exc:`OSError`
1101-
* [1]_
1101+
* [base]_
11021102
* * .. c:var:: PyObject *PyExc_OverflowError
11031103
* :exc:`OverflowError`
11041104
*
@@ -1168,17 +1168,17 @@ For completeness, here are all the variables:
11681168
11691169
* * .. c:var:: PyObject *PyExc_EnvironmentError
11701170
* :exc:`OSError`
1171-
* [3]_
1171+
* [oserror]_
11721172
* * .. c:var:: PyObject *PyExc_IOError
11731173
* :exc:`OSError`
1174-
* [3]_
1174+
* [oserror]_
11751175
* * .. c:var:: PyObject *PyExc_WindowsError
11761176
* :exc:`OSError`
1177-
* [2]_ [3]_
1177+
* [oserror]_ [win]_
11781178
11791179
* * .. c:var:: PyObject *PyExc_Warning
11801180
* :exc:`Warning`
1181-
* [4]_
1181+
* [base]_
11821182
* * .. c:var:: PyObject *PyExc_BytesWarning
11831183
* :exc:`BytesWarning`
11841184
*
@@ -1241,18 +1241,15 @@ For completeness, here are all the variables:
12411241
12421242
Notes:
12431243
1244-
.. [1]
1245-
This is a base class for other standard exceptions.
1244+
.. [base]
1245+
This is a base class for other standard exceptions or warning categories.
12461246
1247-
.. [2]
1247+
.. [win]
12481248
Only defined on Windows; protect code that uses this by testing that the
12491249
preprocessor macro ``MS_WINDOWS`` is defined.
12501250
1251-
.. [3]
1252-
This are compatibility alias to :c:data:`PyExc_OSError`.
1251+
.. [oserror]
1252+
This is a compatibility alias to :c:data:`PyExc_OSError`.
12531253
12541254
.. versionchanged:: 3.3
12551255
These aliases used to be separate exception types.
1256-
1257-
.. [4]
1258-
This is a base class for other standard warning categories.

0 commit comments

Comments
 (0)