diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2013-02-10 01:18:50 +0100 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2013-02-10 14:40:23 +0100 |
commit | 2b76da387ef4c8a0317c80ce08e5bbab833b14e5 (patch) | |
tree | c0af1621aeb526e59d75d836031e9230bc1a38e9 /numpy/lib/utils.py | |
parent | 7ccf5308193eef9c5fb0a3ee3d4e84562784c31b (diff) | |
download | numpy-2b76da387ef4c8a0317c80ce08e5bbab833b14e5.tar.gz |
BUG: Fix reporting of memory error inside sorting
PyDataMem_NEW was not checked for error and the occurance of
errors not returned correctly in new_sort. Also for PyArray_LexSort
and new_argsort it should now raise MemoryError correctly.
This is done by setting PyErr_NoMemory() when no error is already
present, as the low level sorting can only fail for this reason.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions