[PyQt] QDataStream shouldn't accept str as first argument

İsmail Dönmez ismail at namtrac.org
Thu May 1 13:36:16 BST 2008


Hi,

Following code will crash with PyQt4 snapshot and older versions :

>>> a = str("")
>>> b = QDataStream(a, QIODevice.ReadOnly)
>>> b.readDouble()
zsh: segmentation fault  python

Regards,
ismail

-- 
Never learn by your mistakes, if you do you may never dare to try again.


More information about the PyQt mailing list