diff options
author | Maxwell Aladago <maxwell.aladago@gmail.com> | 2019-08-22 13:45:59 -0400 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2019-08-22 11:45:59 -0600 |
commit | 965ea2ff417bcb285beca5c36cd02a8790a3d8f6 (patch) | |
tree | 3d4622d6e96b834b10e0ff362b4725362912172d /numpy/core/numeric.py | |
parent | 99b7afc519ff4708ed3b66f288125a404efced2e (diff) | |
download | numpy-965ea2ff417bcb285beca5c36cd02a8790a3d8f6.tar.gz |
BUG: Fix segfault in `random.permutation(x)` when x is a string. (#14241)
* fixing segfault error in np.random.permutation(x) where x is str
* removed whitespace
* changing error type to ValueError
* changing error type to ValueError
* changing error type to ValueError
* tests
* changed error to IndexError for backward compatibility with numpy 1.16
* fixes numpy.randomstate.permutation segfault too
* Rolled back to ValueError for Generator.permutation() for all 0-dimensional
* fixes refuige erro and rolls backs to AxisError
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions