March 2003
Intermediate to advanced
656 pages
39h 30m
English
PyErr_Occurred
PyObject* PyErr_Occurred( )
Returns NULL if no error is pending, otherwise a
borrowed reference to the type of the pending exception.
(Don’t use the returned value; call
PyErr_ExceptionMatches instead, in order to catch
exceptions of subclasses as well, as is normal and expected.)
Read now
Unlock full access