[Matrix-SIG] Python crash when sort is given zero length list
Travis E. Oliphant
Oliphant.Travis@mayo.edu
Sun, 13 Dec 1998 17:41:19 -0600
I'm running NumPy 1.3 on Linux libc6 and get a floating
point exception when I try to sort a list with zero elements.
Here is the session.
Anybody seen this and made the fix.
>>> from Numeric import sort
>>> sort([])
Floating point exception
----------------------------------------------------
Travis Oliphant 200 First St SW
Rochester MN 55905
Ultrasound Research Lab (507) 286-5923
Mayo Graduate School Oliphant.Travis@mayo.edu