Skip to content

Commit 88b5784

Browse files
[3.14] Docs: Update PyExc_* tables in the c-api documentation (GH-131640) (GH-135220)
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 dd4a819 commit 88b5784

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
@@ -982,6 +982,7 @@ the variables:
982982
983983
.. index::
984984
single: PyExc_BaseException (C var)
985+
single: PyExc_BaseExceptionGroup (C var)
985986
single: PyExc_Exception (C var)
986987
single: PyExc_ArithmeticError (C var)
987988
single: PyExc_AssertionError (C var)
@@ -1041,6 +1042,8 @@ the variables:
10411042
+=========================================+=================================+==========+
10421043
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
10431044
+-----------------------------------------+---------------------------------+----------+
1045+
| :c:data:`PyExc_BaseExceptionGroup` | :exc:`BaseExceptionGroup` | [1]_ |
1046+
+-----------------------------------------+---------------------------------+----------+
10441047
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
10451048
+-----------------------------------------+---------------------------------+----------+
10461049
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
@@ -1164,6 +1167,9 @@ the variables:
11641167
.. versionadded:: 3.6
11651168
:c:data:`PyExc_ModuleNotFoundError`.
11661169
1170+
.. versionadded:: 3.11
1171+
:c:data:`PyExc_BaseExceptionGroup`.
1172+
11671173
These are compatibility aliases to :c:data:`PyExc_OSError`:
11681174
11691175
.. index::
@@ -1207,6 +1213,7 @@ the variables:
12071213
single: PyExc_Warning (C var)
12081214
single: PyExc_BytesWarning (C var)
12091215
single: PyExc_DeprecationWarning (C var)
1216+
single: PyExc_EncodingWarning (C var)
12101217
single: PyExc_FutureWarning (C var)
12111218
single: PyExc_ImportWarning (C var)
12121219
single: PyExc_PendingDeprecationWarning (C var)
@@ -1225,6 +1232,8 @@ the variables:
12251232
+------------------------------------------+---------------------------------+----------+
12261233
| :c:data:`PyExc_DeprecationWarning` | :exc:`DeprecationWarning` | |
12271234
+------------------------------------------+---------------------------------+----------+
1235+
| :c:data:`PyExc_EncodingWarning` | :exc:`EncodingWarning` | |
1236+
+------------------------------------------+---------------------------------+----------+
12281237
| :c:data:`PyExc_FutureWarning` | :exc:`FutureWarning` | |
12291238
+------------------------------------------+---------------------------------+----------+
12301239
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
@@ -1245,6 +1254,9 @@ the variables:
12451254
.. versionadded:: 3.2
12461255
:c:data:`PyExc_ResourceWarning`.
12471256
1257+
.. versionadded:: 3.10
1258+
:c:data:`PyExc_EncodingWarning`.
1259+
12481260
Notes:
12491261
12501262
.. [3]

Doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
('c:data', 'PyExc_AssertionError'),
235235
('c:data', 'PyExc_AttributeError'),
236236
('c:data', 'PyExc_BaseException'),
237+
('c:data', 'PyExc_BaseExceptionGroup'),
237238
('c:data', 'PyExc_BlockingIOError'),
238239
('c:data', 'PyExc_BrokenPipeError'),
239240
('c:data', 'PyExc_BufferError'),
@@ -287,6 +288,7 @@
287288
# C API: Standard Python warning classes
288289
('c:data', 'PyExc_BytesWarning'),
289290
('c:data', 'PyExc_DeprecationWarning'),
291+
('c:data', 'PyExc_EncodingWarning'),
290292
('c:data', 'PyExc_FutureWarning'),
291293
('c:data', 'PyExc_ImportWarning'),
292294
('c:data', 'PyExc_PendingDeprecationWarning'),

0 commit comments

Comments
 (0)