forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters