Skip to content

Commit b250035

Browse files
[3.13] Docs: Update PyExc_* tables in the c-api documentation (GH-131640) (GH-135221)
Docs: Update `PyExc_*` tables in the c-api documentation (GH-131640) Add `PyExc_BaseExceptionGroup` and `PyExc_EncodingWarning` (cherry picked from commit f00512d) Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
1 parent f9c18ba commit b250035

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Doc/c-api/exceptions.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ the variables:
970970
971971
.. index::
972972
single: PyExc_BaseException (C var)
973+
single: PyExc_BaseExceptionGroup (C var)
973974
single: PyExc_Exception (C var)
974975
single: PyExc_ArithmeticError (C var)
975976
single: PyExc_AssertionError (C var)
@@ -1029,6 +1030,8 @@ the variables:
10291030
+=========================================+=================================+==========+
10301031
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
10311032
+-----------------------------------------+---------------------------------+----------+
1033+
| :c:data:`PyExc_BaseExceptionGroup` | :exc:`BaseExceptionGroup` | [1]_ |
1034+
+-----------------------------------------+---------------------------------+----------+
10321035
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
10331036
+-----------------------------------------+---------------------------------+----------+
10341037
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
@@ -1152,6 +1155,9 @@ the variables:
11521155
.. versionadded:: 3.6
11531156
:c:data:`PyExc_ModuleNotFoundError`.
11541157
1158+
.. versionadded:: 3.11
1159+
:c:data:`PyExc_BaseExceptionGroup`.
1160+
11551161
These are compatibility aliases to :c:data:`PyExc_OSError`:
11561162
11571163
.. index::
@@ -1195,6 +1201,7 @@ the variables:
11951201
single: PyExc_Warning (C var)
11961202
single: PyExc_BytesWarning (C var)
11971203
single: PyExc_DeprecationWarning (C var)
1204+
single: PyExc_EncodingWarning (C var)
11981205
single: PyExc_FutureWarning (C var)
11991206
single: PyExc_ImportWarning (C var)
12001207
single: PyExc_PendingDeprecationWarning (C var)
@@ -1213,6 +1220,8 @@ the variables:
12131220
+------------------------------------------+---------------------------------+----------+
12141221
| :c:data:`PyExc_DeprecationWarning` | :exc:`DeprecationWarning` | |
12151222
+------------------------------------------+---------------------------------+----------+
1223+
| :c:data:`PyExc_EncodingWarning` | :exc:`EncodingWarning` | |
1224+
+------------------------------------------+---------------------------------+----------+
12161225
| :c:data:`PyExc_FutureWarning` | :exc:`FutureWarning` | |
12171226
+------------------------------------------+---------------------------------+----------+
12181227
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
@@ -1233,6 +1242,9 @@ the variables:
12331242
.. versionadded:: 3.2
12341243
:c:data:`PyExc_ResourceWarning`.
12351244
1245+
.. versionadded:: 3.10
1246+
:c:data:`PyExc_EncodingWarning`.
1247+
12361248
Notes:
12371249
12381250
.. [3]

Doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
('c:data', 'PyExc_AssertionError'),
227227
('c:data', 'PyExc_AttributeError'),
228228
('c:data', 'PyExc_BaseException'),
229+
('c:data', 'PyExc_BaseExceptionGroup'),
229230
('c:data', 'PyExc_BlockingIOError'),
230231
('c:data', 'PyExc_BrokenPipeError'),
231232
('c:data', 'PyExc_BufferError'),
@@ -279,6 +280,7 @@
279280
# C API: Standard Python warning classes
280281
('c:data', 'PyExc_BytesWarning'),
281282
('c:data', 'PyExc_DeprecationWarning'),
283+
('c:data', 'PyExc_EncodingWarning'),
282284
('c:data', 'PyExc_FutureWarning'),
283285
('c:data', 'PyExc_ImportWarning'),
284286
('c:data', 'PyExc_PendingDeprecationWarning'),

0 commit comments

Comments
 (0)