From e3d6db3b6145d68ffea5c70384ab5cec91809e5d Mon Sep 17 00:00:00 2001 From: cocoatomo Date: Sun, 2 Apr 2017 07:02:43 +0900 Subject: [PATCH] Move some common ancestor classes to the top of the tables --- Doc/c-api/exceptions.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 747f4805e9dd..3516a1690384 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -751,10 +751,11 @@ All standard Python exceptions are available as global variables whose names are the variables: .. index:: + single: PyExc_BaseException + single: PyExc_Exception single: PyExc_ArithmeticError single: PyExc_AssertionError single: PyExc_AttributeError - single: PyExc_BaseException single: PyExc_BlockingIOError single: PyExc_BrokenPipeError single: PyExc_BufferError @@ -764,7 +765,6 @@ the variables: single: PyExc_ConnectionRefusedError single: PyExc_ConnectionResetError single: PyExc_EOFError - single: PyExc_Exception single: PyExc_FileExistsError single: PyExc_FileNotFoundError single: PyExc_FloatingPointError @@ -808,14 +808,16 @@ the variables: +-----------------------------------------+---------------------------------+----------+ | C Name | Python Name | Notes | +=========================================+=================================+==========+ +| :c:data:`PyExc_BaseException` | :exc:`BaseException` | \(1) | ++-----------------------------------------+---------------------------------+----------+ +| :c:data:`PyExc_Exception` | :exc:`Exception` | \(1) | ++-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | \(1) | +-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_AssertionError` | :exc:`AssertionError` | | +-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_AttributeError` | :exc:`AttributeError` | | +-----------------------------------------+---------------------------------+----------+ -| :c:data:`PyExc_BaseException` | :exc:`BaseException` | \(1) | -+-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_BlockingIOError` | :exc:`BlockingIOError` | | +-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_BrokenPipeError` | :exc:`BrokenPipeError` | | @@ -834,8 +836,6 @@ the variables: +-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_EOFError` | :exc:`EOFError` | | +-----------------------------------------+---------------------------------+----------+ -| :c:data:`PyExc_Exception` | :exc:`Exception` | \(1) | -+-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_FileExistsError` | :exc:`FileExistsError` | | +-----------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_FileNotFoundError` | :exc:`FileNotFoundError` | | @@ -972,6 +972,7 @@ names are ``PyExc_`` followed by the Python exception name. These have the type the variables: .. index:: + single: PyExc_Warning single: PyExc_BytesWarning single: PyExc_DepricationWarning single: PyExc_FutureWarning @@ -982,11 +983,12 @@ the variables: single: PyExc_SyntaxWarning single: PyExc_UnicodeWarning single: PyExc_UserWarning - single: PyExc_Warning +------------------------------------------+---------------------------------+----------+ | C Name | Python Name | Notes | +==========================================+=================================+==========+ +| :c:data:`PyExc_Warning` | :exc:`Warning` | \(1) | ++------------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_BytesWarning` | :exc:`BytesWarning` | | +------------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_DeprecationWarning` | :exc:`DeprecationWarning` | | @@ -1007,8 +1009,6 @@ the variables: +------------------------------------------+---------------------------------+----------+ | :c:data:`PyExc_UserWarning` | :exc:`UserWarning` | | +------------------------------------------+---------------------------------+----------+ -| :c:data:`PyExc_Warning` | :exc:`Warning` | \(1) | -+------------------------------------------+---------------------------------+----------+ .. versionadded:: 3.2 :c:data:`PyExc_ResourceWarning`. -- 2.47.3