[PyQt] Next PyQt, SIP, QScintilla Releases
Phil Thompson
phil at riverbankcomputing.com
Tue Nov 4 09:49:18 GMT 2008
On Tue, 4 Nov 2008 07:28:44 +0100, Gerard Vermeulen <gav451 at gmail.com>
wrote:
> On Sat, 01 Nov 2008 17:29:59 +0000
> Phil Thompson <phil at riverbankcomputing.com> wrote:
>
>> There will be new releases of PyQt, SIP and QScintilla in the next
>> few days based on current snapshots.
>>
>> Let me know if there is anything you are expecting that doesn't seem
>> to be there.
>>
>> Phil
>
> The QImage constructor steals a reference to the uchar *data argument
> instead of increasing the reference count of the input string (tested)
> or buffer object (untested, but looked into siplib.c).
> It is the (not very well documented) responsibility of the Python
> programmer to keep a reference to that argument for the lifetime
> of the QImage instance to prevent the use of invalid image data.
>
> Bug or quirk?
Feature - it's the same issue that setModel() has.
I have a plan, but it needs a SIP change so it should be in v4.8 (not
v4.7.8).
Phil
More information about the PyQt
mailing list