summaryrefslogtreecommitdiff
path: root/numpy/doc/indexing.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-11-01 12:48:21 -0600
committerCharles Harris <charlesr.harris@gmail.com>2016-11-01 13:43:25 -0600
commit3ab221383bb35fe15b333f75e002afae8cddc931 (patch)
tree931e9d962613621a82419ba56554793d2ea4cffc /numpy/doc/indexing.py
parent4083ea6617aff898868643cefdd828225ebecbad (diff)
downloadnumpy-3ab221383bb35fe15b333f75e002afae8cddc931.tar.gz
ENH: Refactor numpy ** operators for numpy scalar integer powers.
This change is the upshot of discussion on the numpy mailing list where it was decided that a numpy scalar integer raised to a negative integer power should raise a ValueError, as do Numpy arrays. In particular, we want numpy scalars and numpy 0-d arrays to have similar behavior. Previously zero was returned for this case.
Diffstat (limited to 'numpy/doc/indexing.py')
0 files changed, 0 insertions, 0 deletions