[PyKDE] QIODevice.readBlock must return a tuple

Phil Thompson phil at riverbankcomputing.co.uk
Thu May 19 16:52:23 BST 2005


> When subclassing QIODevice, I noticed (with a look at qiodevice.sip) that
> readBlock method must return a tuple with a string. I would expect this
> method to return a string. But my knowledge of sip/PyQt is not enough to
> say
> if it is a bug or not.

It's not a bug - it returns a tuple of the length of the data and the data
itself. I agree it could be made more Pythonic - just return the data as
you suggest (maybe PyQt4).

Phil




More information about the PyQt mailing list