Message179680
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 |
|
Date |
User |
Action |
Args |
2013-01-11 14:13:56 | stephane.poirier | set | recipients:
+ stephane.poirier |
2013-01-11 14:13:56 | stephane.poirier | set | messageid: <1357913636.91.0.603686278342.issue16934@psf.upfronthosting.co.za> |
2013-01-11 14:13:56 | stephane.poirier | link | issue16934 messages |
2013-01-11 14:13:56 | stephane.poirier | create | |
|