numpy/numpy — pull request #2924 by certik (2013-01-17 03:56:24+00:00)
Title: Backport of #2897 (ndindex failing)

This backports all relevant changes from:

https://github.com/numpy/numpy/pull/2897

I squashed them into just one commit.