Exceptions from callbacks

Eric Dorland dorland at lords.com
Sun Oct 31 14:39:07 EST 1999


I'm writing a Python wrapper for a library. The library stores some
callbacks for some events, and with some glue code, get these to call
python functions. That's the easy part. Now since its the library these
callback and not Python per se, how do you pass an exception back to the
interpreter, because you can't return NULL from the callback. Do you
just set the exception, and Python will pick up on it?


-- 

Eric Dorland
dorland at lords.com




More information about the Python-list mailing list