[pypy-issue] [issue1144] numpypy: bug with np.all(True) and np.any(True)

Dmitrey tracker at bugs.pypy.org
Thu May 17 13:20:56 CEST 2012


New submission from Dmitrey <dmitrey15 at ukr.net>:

>>>> import numpypy as np
>>>> np.all(True)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File
"/home/dmitrey/Install/pypy-c-jit-55112-18e6d6d81497-linux/lib_pypy/numpypy/core/fromnumeric.py",
line 1546, in all
    return a.all()
TypeError: cannot reduce on a scalar

>>>> np.any(True)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File
"/home/dmitrey/Install/pypy-c-jit-55112-18e6d6d81497-linux/lib_pypy/numpypy/core/fromnumeric.py",
line 1482, in any
    return a.any()
TypeError: cannot reduce on a scalar

in cpython numpy it's just True

----------
messages: 4318
nosy: Dmitrey, pypy-issue
priority: bug
status: unread
title: numpypy: bug with np.all(True) and np.any(True)

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


More information about the pypy-issue mailing list