[PyQt] SIP: how to add a new annotation

Phil Thompson phil at riverbankcomputing.co.uk
Fri Oct 5 10:37:36 BST 2007

On Friday 05 October 2007, Giovanni Bajo wrote:
> On 10/4/2007 6:11 PM, Phil Thompson wrote:
> > You'd need to define a new over flag in sip.h, set it in parser.y and
> > test it (and generate the necessary code) in gencode.c.
> Thanks!
> > Or you could use the existing PreHook annotation.
> But I'd have to duplicate the code for every function I need to mark
> with /Deprecated/.

You'd have to specify the name of the builtin you wrote each time, not the 
code itself.


More information about the PyQt mailing list