numpy/numpy — pull request #4103 by seberg (2013-12-05 13:19:48+00:00)
Title: BUG|API: Raise wrong arg{min|max} out shape and stricter check

The error was not raised when the output array size did not match
the given out array causing segfaults if the out array was smaller.

This also makes the shape check strict and changes the error
to a ValueError. The shape check could be relaxed for leading
ones. ufuncs and assignments do this.

-

The new check is more strict (and the error type changed), if someone thinks that a stricter issue is a problem I can relax it again (this makes it behave like e.g. take's out, some out's allow leading 1s)