numpy/numpy — pull request #323 by njsmith (2012-06-27 16:46:22+00:00)
Title: BUG: handle length-0 axes correctly in ufunc.reduce without identity

In numpy 1.6, reduction operations with no identity
(e.g. numpy.maximum) gave an error iff they were asked to reduce a
0-element dimension. This regressed during the 1.7 development cycle,
so that they started giving an error if *any* dimension had 0
elements, even ones that were not reduced over. Fixes bug #2078.