mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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 f00512db20)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
This commit is contained in:
parent
dd4a819a82
commit
88b5784fc0
2 changed files with 14 additions and 0 deletions
|
|
@ -982,6 +982,7 @@ the variables:
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
single: PyExc_BaseException (C var)
|
single: PyExc_BaseException (C var)
|
||||||
|
single: PyExc_BaseExceptionGroup (C var)
|
||||||
single: PyExc_Exception (C var)
|
single: PyExc_Exception (C var)
|
||||||
single: PyExc_ArithmeticError (C var)
|
single: PyExc_ArithmeticError (C var)
|
||||||
single: PyExc_AssertionError (C var)
|
single: PyExc_AssertionError (C var)
|
||||||
|
|
@ -1041,6 +1042,8 @@ the variables:
|
||||||
+=========================================+=================================+==========+
|
+=========================================+=================================+==========+
|
||||||
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
|
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
|
||||||
+-----------------------------------------+---------------------------------+----------+
|
+-----------------------------------------+---------------------------------+----------+
|
||||||
|
| :c:data:`PyExc_BaseExceptionGroup` | :exc:`BaseExceptionGroup` | [1]_ |
|
||||||
|
+-----------------------------------------+---------------------------------+----------+
|
||||||
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
|
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
|
||||||
+-----------------------------------------+---------------------------------+----------+
|
+-----------------------------------------+---------------------------------+----------+
|
||||||
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
|
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
|
||||||
|
|
@ -1164,6 +1167,9 @@ the variables:
|
||||||
.. versionadded:: 3.6
|
.. versionadded:: 3.6
|
||||||
:c:data:`PyExc_ModuleNotFoundError`.
|
:c:data:`PyExc_ModuleNotFoundError`.
|
||||||
|
|
||||||
|
.. versionadded:: 3.11
|
||||||
|
:c:data:`PyExc_BaseExceptionGroup`.
|
||||||
|
|
||||||
These are compatibility aliases to :c:data:`PyExc_OSError`:
|
These are compatibility aliases to :c:data:`PyExc_OSError`:
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
|
|
@ -1207,6 +1213,7 @@ the variables:
|
||||||
single: PyExc_Warning (C var)
|
single: PyExc_Warning (C var)
|
||||||
single: PyExc_BytesWarning (C var)
|
single: PyExc_BytesWarning (C var)
|
||||||
single: PyExc_DeprecationWarning (C var)
|
single: PyExc_DeprecationWarning (C var)
|
||||||
|
single: PyExc_EncodingWarning (C var)
|
||||||
single: PyExc_FutureWarning (C var)
|
single: PyExc_FutureWarning (C var)
|
||||||
single: PyExc_ImportWarning (C var)
|
single: PyExc_ImportWarning (C var)
|
||||||
single: PyExc_PendingDeprecationWarning (C var)
|
single: PyExc_PendingDeprecationWarning (C var)
|
||||||
|
|
@ -1225,6 +1232,8 @@ the variables:
|
||||||
+------------------------------------------+---------------------------------+----------+
|
+------------------------------------------+---------------------------------+----------+
|
||||||
| :c:data:`PyExc_DeprecationWarning` | :exc:`DeprecationWarning` | |
|
| :c:data:`PyExc_DeprecationWarning` | :exc:`DeprecationWarning` | |
|
||||||
+------------------------------------------+---------------------------------+----------+
|
+------------------------------------------+---------------------------------+----------+
|
||||||
|
| :c:data:`PyExc_EncodingWarning` | :exc:`EncodingWarning` | |
|
||||||
|
+------------------------------------------+---------------------------------+----------+
|
||||||
| :c:data:`PyExc_FutureWarning` | :exc:`FutureWarning` | |
|
| :c:data:`PyExc_FutureWarning` | :exc:`FutureWarning` | |
|
||||||
+------------------------------------------+---------------------------------+----------+
|
+------------------------------------------+---------------------------------+----------+
|
||||||
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
|
| :c:data:`PyExc_ImportWarning` | :exc:`ImportWarning` | |
|
||||||
|
|
@ -1245,6 +1254,9 @@ the variables:
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
:c:data:`PyExc_ResourceWarning`.
|
:c:data:`PyExc_ResourceWarning`.
|
||||||
|
|
||||||
|
.. versionadded:: 3.10
|
||||||
|
:c:data:`PyExc_EncodingWarning`.
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
.. [3]
|
.. [3]
|
||||||
|
|
|
||||||
|
|
@ -234,6 +234,7 @@
|
||||||
('c:data', 'PyExc_AssertionError'),
|
('c:data', 'PyExc_AssertionError'),
|
||||||
('c:data', 'PyExc_AttributeError'),
|
('c:data', 'PyExc_AttributeError'),
|
||||||
('c:data', 'PyExc_BaseException'),
|
('c:data', 'PyExc_BaseException'),
|
||||||
|
('c:data', 'PyExc_BaseExceptionGroup'),
|
||||||
('c:data', 'PyExc_BlockingIOError'),
|
('c:data', 'PyExc_BlockingIOError'),
|
||||||
('c:data', 'PyExc_BrokenPipeError'),
|
('c:data', 'PyExc_BrokenPipeError'),
|
||||||
('c:data', 'PyExc_BufferError'),
|
('c:data', 'PyExc_BufferError'),
|
||||||
|
|
@ -287,6 +288,7 @@
|
||||||
# C API: Standard Python warning classes
|
# C API: Standard Python warning classes
|
||||||
('c:data', 'PyExc_BytesWarning'),
|
('c:data', 'PyExc_BytesWarning'),
|
||||||
('c:data', 'PyExc_DeprecationWarning'),
|
('c:data', 'PyExc_DeprecationWarning'),
|
||||||
|
('c:data', 'PyExc_EncodingWarning'),
|
||||||
('c:data', 'PyExc_FutureWarning'),
|
('c:data', 'PyExc_FutureWarning'),
|
||||||
('c:data', 'PyExc_ImportWarning'),
|
('c:data', 'PyExc_ImportWarning'),
|
||||||
('c:data', 'PyExc_PendingDeprecationWarning'),
|
('c:data', 'PyExc_PendingDeprecationWarning'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue