A
anonymisiert85
I run this string to produce a error "x+1"
PyRun_SimpleStringFlags() return -1, so that i know this is a script
with error inside...
but now - how can i get error message?
i tested some py-functions - but this functions do not work... i
called this functions direct after PyRun_SimpleStringFlags
PyErr_Occurred() return always 0
PyErr_Fetch() with 3 pointers... all values are always Null
PyErr_Print() do nothing
strange...
but after my programm end... here comes a error message (from StdErr i
think)
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'x' is not defined
PyRun_SimpleStringFlags() return -1, so that i know this is a script
with error inside...
but now - how can i get error message?
i tested some py-functions - but this functions do not work... i
called this functions direct after PyRun_SimpleStringFlags
PyErr_Occurred() return always 0
PyErr_Fetch() with 3 pointers... all values are always Null
PyErr_Print() do nothing
strange...
but after my programm end... here comes a error message (from StdErr i
think)
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'x' is not defined