What is the Python API equivalent of PyErr_Print()
, from the C interface?
I'm assuming a call in either the sys
, or traceback
modules, but can't find any functions therein that make calls to PyErr_Print()
.
Addendum
I'm after the Python call to get the same functionality as PyErr_PrintEx()
, described as:
Print a standard traceback to sys.stderr and clear the error indicator.
That is I want to make the Python call that has this effect.