[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QIODevice.readBlock must return a tuple
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-05-19 15:52:23
Message-ID: 46812.82.68.80.137.1116517943.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> 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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic