[Numpy-svn] [numpy/numpy] d36e07: BUG: Fix ticket #2021.
Sat Jan 21 11:29:08 CST 2012
Author: Charles Harris <email@example.com>
Date: 2012-01-21 (Sat, 21 Jan 2012)
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.
More information about the Numpy-svn