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>