[New-bugs-announce] [issue16934] qsort doesn't work for double arrays
report at bugs.python.org
Fri Jan 11 15:13:56 CET 2013
New submission from Stephane Poirier:
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 and b may be nan.
The script can be launch by
title: qsort doesn't work for double arrays
versions: Python 2.6, Python 2.7, Python 3.3
Added file: http://bugs.python.org/file28696/testQSort33.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce