[PyQt] QUrl::query in %If with PyQt 5.9.1

Florian Bruhin me at the-compiler.org
Mon Nov 6 11:31:57 GMT 2017


On Mon, Nov 06, 2017 at 10:32:29AM +0000, Phil Thompson wrote:
> On 6 Nov 2017, at 7:23 am, Florian Bruhin <me at the-compiler.org> wrote:
> > 
> > Hi,
> > 
> > PyQt 5.9.1 has this for QUrl::query:
> > 
> >    %If (Qt_5_9_1 -)
> >        QString query(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const;
> >    %End
> > 
> > The %If wasn't here in PyQt 5.9 and seems wrong. ;)
> 
> It is. As it's a regression I'm "happy" to make a new release to fix it. Is it needed?

FWIW I pushed a workaround using QUrlQuery(url).query() to my project:
https://github.com/qutebrowser/qutebrowser/commit/b55bb5dc6f0eaee9f4dcd6a20fbb92c944ca4e13

However, I have no idea whether it works (I haven't actually tested this), and
parsing/reconstructing the string might also have some consequences. I also
don't plan a qutebrowser release in the next few days ;)

So yeah, I'd be glad about a release fixing this somewhen in the next couple of
days.

Florian

-- 
https://www.qutebrowser.org  | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171106/9c3ecb40/attachment.sig>


More information about the PyQt mailing list