Error handling when embedding python...

Axel Schlueter aschlueter at pqrs.de
Fri Jan 24 07:48:26 EST 2003


Martin v. Löwis wrote:
> How do you invoke the Python code? Python will not, normally, print an 
> error on stderr, but will return a NULL value from the API, with a 

Good hint, thanks. After looking into the implementation of
PyRun_SimpleString(), which I was using, I instantly know how
error handling works.

best regards,
Axel
-- 
,gis siht no noitpyrcne eht gnikaerb yB
.liaj ot oG .ACMD eht detaloiv evah uoy





More information about the Python-list mailing list