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

2008-05-03 Thread Phil Thompson
On Thursday 01 May 2008, İsmail Dönmez wrote: > Hi, > > Following code will crash with PyQt4 snapshot and older versions : > >>> a = str("") > >>> b = QDataStream(a, QIODevice.ReadOnly) > >>> b.readDouble() > > zsh: segmentation fault python Fixed in tonight's snapshot. Thanks, Phil ___

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

2008-05-01 Thread İsmail Dönmez
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. _