[PyKDE] sipNew vs sipCpp

Phil Thompson phil at riverbankcomputing.co.uk
Wed Jan 28 09:13:01 GMT 2004


On Wednesday 28 January 2004 1:46 am, Claus, Richard wrote:
> Hi,
>
>   I'm upgrading from sip 3.8 to sip 3.10 and noticed that my application
> now fails to compile because the variable sipNew has undergone a name
> change to sipCpp.  Since I didn't find any notes with the package or
> comments on the PyKDE list about this, I'm wondering whether I'm using
> "privileged" information.  Should I be constructing my objects in some
> other way in the %MemberCode block?  At the time that this package was
> coming together (sip 3.3 days) it appeared necessary to do this in order to
> handle various constructor arguments.

You should migrate your %MemberCode to %MethodCode as the former is now 
deprecated and unsupported in SIP 4.x. The latter is much easier to use and 
requires much less handwritten code.

Running SIP with the -w flag will tell you (hopefully) all the things you need 
to change.

Phil




More information about the PyQt mailing list