March 2003
Intermediate to advanced
656 pages
39h 30m
English
PyErr_Print
void PyErr_Print( )
Call only when an error is pending, or the whole program might crash.
Outputs a standard traceback to sys.stderr, then
clears the error indicator.
If you need to process errors in highly sophisticated ways, study
other error-related functions of the C API, such as
PyErr_Fetch, PyErr_Normalize,
PyErr_GivenExceptionMatches, and
PyErr_Restore. However, I do not cover such
advanced and rarely needed possibilities in this book.