We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyExceptionInstance*
1 parent 92ae158 commit a961989Copy full SHA for a961989
Doc/c-api/exceptions.rst
@@ -788,6 +788,17 @@ Exception Classes
788
Exception Objects
789
=================
790
791
+.. c:function:: int PyExceptionInstance_Check(PyObject *op)
792
+
793
+ Return true if *op* is an instance of :class:`BaseException`, false
794
+ otherwise. This function always succeeds.
795
796
797
+.. c:macro:: PyExceptionInstance_Class(op)
798
799
+ Equivalent to :c:func:`Py_TYPE(op) <Py_TYPE>`.
800
801
802
.. c:function:: PyObject* PyException_GetTraceback(PyObject *ex)
803
804
Return the traceback associated with the exception as a new reference, as
0 commit comments