On Thursday 04 October 2007, Giovanni Bajo wrote:
> Hello,
>
> I need to implement a new annotation in SIP: /Deprecated/. It would be a
> function/method annotation. When the marked function/method is called, a
> deprecate warning is issued on the console (with or without a full
> Python traceback).
>
> Is that hard to implement, and/or require much work? Any general
> checklist of what need to be coded to implement it?
>
> Thanks!

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.

Or you could use the existing PreHook annotation.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to