summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-04-13 09:53:59 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2013-05-31 19:16:02 +0200
commita727f424a5b402558a7b7cba978449a1b015a47e (patch)
treea9a641e5e977883ac86e1fcd101c3e3295f0f167 /numpy/testing/utils.py
parent8dfc25d0e1fcaed67b8c688cfd9f5ac0641fc5e7 (diff)
downloadnumpy-a727f424a5b402558a7b7cba978449a1b015a47e.tar.gz
API: Deprecate __index__ for ndim > 0
For example NumPy indexing treats np.ones(()) very differently from np.ones((1,)). It seems a bad idea to allow __index__ for arrays that are not 0-d, as they cannot always be safely interpreted as integers.
Diffstat (limited to 'numpy/testing/utils.py')
0 files changed, 0 insertions, 0 deletions