newbie question

Fredrik Lundh effbot at telia.com
Mon Apr 17 12:44:12 EDT 2000


Arint‚ <jamarijr at hotmail.com> wrote:
> If i PyErr_SetString(PyExc_TypeError,"Invalid command value for IOCTL");
> in my c/c++ program, how would python script get that error string?

return NULL to the interpreter.  do *not* return
a python value.

also see:
http://www.python.org/doc/current/ext/errors.html

</F>






More information about the Python-list mailing list