how to get string printed by PyErr_Print( )

Jason Qian jqian at tibco.com
Mon Sep 17 12:01:47 EDT 2018


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



More information about the Python-list mailing list