[PyKDE] Handling exceptions in SIP
ephelon at gmail.com
Thu Jun 9 17:33:22 BST 2005
On 6/7/05, Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
> So if I introduce something like...
> %ExceptionType MyException
> #include <whatever>
> // C++ code to return a PyObject instance of the exception.
> // sipCpp (the C++ poiter) and sipException_MyException (the
> // PyObject exception type) will be available, eg...
> return PyObject_CallFunction(sipException_MyException, "S",
I think there is a need for biderectional conversion of exceptions.
I'd like to be able to throw them back into the C++.
In fact, a mechanism that could be enable to check the Python error
state after calling a Python method from C++ could throw the exception
instead of returning to the C++.
More information about the PyQt