From: Eliot <el...@bl...> - 2006-05-26 00:55:17
|
Hi, I have a C library where all functions are of the form error_code Func(inparam, * outparam) I want to convert the error_code to a python exeception, this works fine: %exception { $action if (result) { PyErr_Format(PyExc_Exception,"ASX error %d",result); return NULL; } } BUT the wrapper function still returns the zero error code. Func(inparam) => (0,outparm) Is there a way to get rid of/ignore the return value? thanks Eliot |