[PyQt] QNetworkCacheMetaData.attributes() hangs forever

Hans-Peter Jansen hpj at urpla.net
Wed Apr 26 13:16:26 BST 2017


Hi Ales,

On Mittwoch, 26. April 2017 12:28:13 Ales Erjavec wrote:
> Hi,
> 
> Accessing QNetworkCacheMetaData.attributes() seems to hang the process
> forever
> 
> Test code:
> ###
> 
> from PyQt5.QtNetwork import QNetworkCacheMetaData, QNetworkRequest
> md = QNetworkCacheMetaData()
> md.setAttributes({QNetworkRequest.HttpReasonPhraseAttribute: b'Ok'})
> md.attributes()  # hangs forever

This smells(!) strongly like a Qt problem. The PyQt share is simply too small 
to matter here.

Try coding a C++ reproducer. I bet, it will behave in a similar way..

Cheers,
Pete





More information about the PyQt mailing list