diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-01-18 17:06:20 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-01-21 10:25:45 -0700 |
commit | d36e076f0559157745c8cc0186a8484081e55a1d (patch) | |
tree | 7817f0e182893877ab9df3eaabc0f70f7fe8f84c /numpy/core/arrayprint.py | |
parent | 6666eecf374153d949c9a9bfec2e4577b979c3f1 (diff) | |
download | numpy-d36e076f0559157745c8cc0186a8484081e55a1d.tar.gz |
BUG: Fix ticket #2021.
The return from PyArray_DescrFromObject PyArray_SearchSorted needed
to be checked for NULL. Also added checks in other spots where
PyArray_DescrFromObject was called. Added regression test for same.
Made a few small code cleanups along the way.
All the checks may not be necessary, but
1) No one should have to waste brain cycles figuring that out.
2) Bugs happen.
3) Things change.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions