[pypy-issue] [issue1013] numpypy: all() and any() with axis argument give incorrect result yet

Dmitrey tracker at bugs.pypy.org
Sat Jan 21 12:08:24 CET 2012


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

Folk, you keep so strict rules of code commit quality for newcomers, while your
own code yields incorrect result even on examples from func docstring. I haven't
found the bug on the bug tracker (although I don't know - maybe someone works on
it, but your development process makes it unclear to understand for non-core dev
people), so let me put it here. Also, maybe, temporary putting error like "the
func doesn't work along axis yet" worth to be done?
>>> np.all([[True,False],[True,True]], axis=0)
array([ True, False], dtype=bool)
>>> np.any([[True,False],[True,True]], axis=0)
array([ True,  True], dtype=bool)
(or just np.any([[True,False],[True,True]], 0))
>>>> np.all([[True,False],[True,True]], axis=0)
False
>>>> np.any([[True,False],[True,True]], axis=0)
True
(all() and any() along axis are used for tens of times in my code, that's why I
care so much about it).
Regards, D.

----------
messages: 3748
nosy: Dmitrey, pypy-issue
priority: bug
status: unread
title: numpypy: all() and any() with axis argument give incorrect result yet

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


More information about the pypy-issue mailing list