Error handling when embedding python...
"Martin v. Löwis"
martin at v.loewis.de
Fri Jan 24 06:41:47 EST 2003
Axel Schlueter wrote:
> while trying to embed python as a scripting possibility into my
> application, I stumbled across error handling. If python finds
> a syntax error, the interpreter prints its error messages to stderr,
> but I would like to open my own error dialog box containing the
> message. Is there anything like an error callback hook or something ?
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
SyntaxError set.
Regards,
Martin
More information about the Python-list
mailing list