[PyQt] sip: extend exception support

Mathias.Born at gmx.de Mathias.Born at gmx.de
Mon Sep 17 21:25:59 BST 2012


On 17.09.2012, 22:14:49 Phil Thompson wrote:
> On Mon, 27 Aug 2012 12:10:23 -0700, Matt Newell <newellm at blur.com> wrote:
>>> 
>>> The difference is the access to the (not necessarily present) objects.
>>> How
>>> are you getting these?
>>> 
>>> Phil
>> 
>> Here's the patch against a quite old hg checkout.

> After several more iterations (ok, rewrites) the implementation in the
> current snapshot should be Ok - and work with %Imported modules.

> Phil

I'm pleased to report that this works fine for me. Some comments:

In the docs about the "%DefaultVirtualErrorHandler" directive, there is a typo

%DefaultVirtualErrorHandle my_handler

which should read

%DefaultVirtualErrorHandler my_handler


In addition, the function type is not

void my_handler(sip_gilstate_t, PyObject *);

but instead

void my_handler(sip_gilstate_t, sipSimpleWrapper*);


Best Regards,
Mathias Born




More information about the PyQt mailing list