[PyQt] Qt v5.9.2 Support

Phil Thompson phil at riverbankcomputing.com
Sun Oct 15 11:20:15 BST 2017


On 15/10/2017 07:06, Florian Bruhin wrote:
> Hey,
> 
> On Sun, Oct 08, 2017 at 09:07:38AM +0000, Phil Thompson wrote:
>> The current PyQt5 and related snapshots now fully support Qt v5.9.2. 
>> However
>> I won't be making a formal release for 2 or 3 weeks.
> 
> Did you consider offering snapshots as wheels as well, in some 
> automated way?
> Or providing a tool to convert a snapshot + Qt binary install to a 
> wheel?
> 
> In some earlier mail you mentioned a tool to create wheels is available 
> for
> commercial users IIRC - however, I don't need the commercial license 
> for any
> other reason than that (since I'm using PyQt for opensource software 
> only).

Source snapshots are created on the system hosting the website. 
Compiling for multiple target platforms is much more complicated.

>> There are some changes in the conversions of enums which means that 
>> invalid
>> values can now raise an exception. If you are using correct values 
>> then you
>> shouldn't see any difference.
> 
> I'm not sure I follow - can you show an example of a line which didn't 
> raise an
> exception before but does now?  Something like Qt.Alignment(1337)? Or 
> passing
> a value which isn't in that enum to a method taking an enum?

Yes, both of those.

>> PyQt has always ignored overflows when converting between Python ints 
>> and
>> C/C++ integer types and the results of such conversions can be 
>> unpredictable
>> in some cases. The sip module now implements enableoverflowchecking() 
>> which
>> means that exceptions will be raised if a Python int is too large to 
>> fit in
>> the corresponding C/C++ type. This behaviour will become the default 
>> in a
>> future version of PyQt.
> 
> I really appreciate that! Turned it on right away :)
> https://github.com/qutebrowser/qutebrowser/commit/8d34d4d4f5e965ffaea571ef0a08fc2df15935aa
> 
> Florian

Phil



More information about the PyQt mailing list