Author stephane.poirier
Recipients stephane.poirier
Date 2013-01-11.14:13:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357913636.91.0.603686278342.issue16934@psf.upfronthosting.co.za>
In-reply-to
Content
qsort doesn't sort arrays that are defined with double elements.
You can find attached a script that shows this function working well for int (as described in the ctypes documentation). If int array is replaced by double array qsort doesn't sort any more.
Even worse, with python 2.6, the difference between a[0] and b[0] may be nan.
The script can be launch by 
python.exe testQSort33.py
History
Date User Action Args
2013-01-11 14:13:56stephane.poiriersetrecipients: + stephane.poirier
2013-01-11 14:13:56stephane.poiriersetmessageid: <1357913636.91.0.603686278342.issue16934@psf.upfronthosting.co.za>
2013-01-11 14:13:56stephane.poirierlinkissue16934 messages
2013-01-11 14:13:56stephane.poiriercreate