summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorHan Genuit <hangenuit@gmail.com>2012-09-14 01:01:49 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2013-04-11 16:59:25 +0200
commit7e28af952cec5cb985b2a56d01e9acae48486b03 (patch)
tree3d70c1c585f90d619a4102df2bc54bebcb0b99f9 /numpy/core/defchararray.py
parent698f57fb2d0c20f7ce7f37267a6e9a1463add0e6 (diff)
downloadnumpy-7e28af952cec5cb985b2a56d01e9acae48486b03.tar.gz
BUG: Fix failing subscript test cases
This fixes indexing with NumPy boolean scalar values, which caused crashes before. Both Python and NumPy boolean scalars now behave the same. This contains a few small changes to PyArrayMapIterNew, where the PyArrayMapIterObject is memset to zero and a fix for the crash, which was caused by _nonzero_indices, which did not initialize any iterators because ndim is zero for scalars. *IterNew will now check for scalars before running that part of the code.
Diffstat (limited to 'numpy/core/defchararray.py')
0 files changed, 0 insertions, 0 deletions