[pypy-issue] [issue1663] np.sum on arrays of bools doesn't count past 127 correctly

Ian Ozsvald tracker at bugs.pypy.org
Wed Feb 19 18:13:46 CET 2014


Ian Ozsvald <ian at ianozsvald.com> added the comment:

Using today's daily build and a fresh checkout of numpy (also today) I still see
the same bug. Should I be using a different branch?

pypy-c-jit-69206-84efb3ba05f1-linux64/sources $ ../bin/pypy
Python 2.7.3 (84efb3ba05f1, Feb 18 2014, 23:00:21)
[PyPy 2.3.0-alpha0 with GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``the future has just begun''
>>>> import numpy as np
>>>> np.sum(np.array([True]*128))
-128
>>>> np.sum(np.array([True]*128), dtype=np.int64)
128
>>>> np.__version__
'1.8.0.dev-303d752'
>>>> np.version
<module 'numpy.version' from
'/home/ian/Downloads/pypy-c-jit-69206-84efb3ba05f1-linux64/site-packages/numpy/version.pyc'>

----------
status: resolved -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1663>
________________________________________


More information about the pypy-issue mailing list