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.
1 parent dbe4090 commit 1316219Copy full SHA for 1316219
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:expr:`Py_TYPE(op)`.
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