Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: handle length-0 axes correctly in ufunc.reduce without identity #323
In numpy 1.6, reduction operations with no identity
WTF? The one failure reported by Travis-CI is with Python 2.5, it's a test unrelated to this change, and I can't reproduce it here.
The failing test is:
and what we're getting for
I suspect that what this is saying is that numpy is in fact buggy in how it handles these assignments, but that this test has mostly been accidentally passing by chance.
Re: the test failure: http://mail.scipy.org/pipermail/numpy-discussion/2012-June/063010.html
Anyway, I think this PR itself is fine.