numpy/numpy — pull request #2812 by dwf (2012-12-13 02:29:15+00:00)
Title: Deprecate non-integer scalar indices

Fixes #2810. Does not address non-integers in list/fancy indices, i.e. #2811.

The relevant indexing code basically breaks down into three code paths:

* Single scalar indices
* Indexing an n-dimensional array with a tuple of n scalars
* Everything else

This adds a DeprecationWarning in the right place in each of them. Since the warning string is the same, it'll only trigger once if it's been triggered anywhere.