[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla
From: "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date: 2005-09-05 7:30:14
Message-ID: 7695.194.203.13.66.1125905414.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]
> On Sunday 04 September 2005 22:49, Phil Thompson wrote:
>> On Sunday 04 September 2005 9:02 pm, David Boddie wrote:
>
>> > I thought this just meant that the C++ wrapper stays around, but the
>> > Python implementation is still collected. My plugin's __del__ method
>> is
>> > still called, just as before.
>>
>> No - the C++ instance (not the wrapper) stays around.
>
> OK, then I'll still need to keep a reference to the plugin from somewhere
> in Python. The pure C++ instance won't do anything useful without its
> Python counterpart.
Just to clarify - the second argument to sip.transferto() being None means
that the wrapper gets garbage collected. If you pass a wrapped object
instead then that wrapped object is given a reference to the object passed
as the first argument and so wouldn't be garbage collected (unless
detected as part of a cycle).
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic