osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to get string printed by PyErr_Print( )


Hey,

Someone has discussed this issue before. Other than redirect stderr, does
the new version python 3.7.0 has other way to retrieve the string
whichPyErr_Print( ) ?


if (PyErr_Occurred())
PyErr_Print();     //need to retrieve the error to string

Thanks