Fatal Python error using ctypes python exceptions

2007-08-31 Thread mmacrobert
Hi Everyone, I've created a 'C' dll that is accessed via ctypes library containing a bunch of functions. I've successfully been able to use the functions. However, I would like to throw python exceptions from some of them. I throw them using: ::PyErr_SetString(::PyExc_RuntimeError,

Re: Fatal Python error using ctypes python exceptions

2007-08-31 Thread Thomas Heller
mmacrobert schrieb: Hi Everyone, I've created a 'C' dll that is accessed via ctypes library containing a bunch of functions. I've successfully been able to use the functions. However, I would like to throw python exceptions from some of them. I throw them using: