[PyQt] Template class with private assignment operator

Phil Thompson phil at riverbankcomputing.com
Wed Apr 6 08:13:11 BST 2011

On Mon, 04 Apr 2011 22:43:54 +0200, Lorenzo Masini <rugginoso at develer.com>
> Il giorno ven, 01/04/2011 alle 12.09 +0100, Phil Thompson ha scritto:
>> Using the /NoRelease/ mapped type annotation will suppress the
>> of the assign_ helper, but it will also has an effect on calling the
>> type's
>> dtor. Is that Ok, or is a separate /NoAssign/ annotation needed?
> Thanks for your reply,
> I think, /NoRelease/ should be enough for my case, because in the
> library I'm wrapping, c++ object ownership should never be passed to
> python.
> Is this the case isn't it?

/NoRelease/ has nothing to do with ownership. It is related to classes
that are passed by value rather than by reference.


More information about the PyQt mailing list