summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2012-01-18 17:06:20 -0700
committerCharles Harris <charlesr.harris@gmail.com>2012-01-21 10:25:45 -0700
commitd36e076f0559157745c8cc0186a8484081e55a1d (patch)
tree7817f0e182893877ab9df3eaabc0f70f7fe8f84c /numpy/core/arrayprint.py
parent6666eecf374153d949c9a9bfec2e4577b979c3f1 (diff)
downloadnumpy-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