[PyQt] SIP method args default ownership rules

Phil Thompson phil at riverbankcomputing.com
Wed May 4 19:54:09 BST 2011

On Wed, 04 May 2011 12:47:39 -0500, "Jim Crowell" <jaclists at mailbolt.com>
> Sorry, I used to know this but it's been a little while since I've done
> any SIPping & the docs on ownership are actually not explicit on this
> point.
> What are the default assumptions about the ownership of objects passed
> into or returned from SIP-generated methods?

The ownership of objects passed in is unchanged. The ownership of objects
returned are with C++ unless SIP has already seen the object, in which case
ownership is unchanged.


More information about the PyQt mailing list