diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2013-12-26 22:21:16 +0100 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2014-02-28 11:11:24 +0100 |
| commit | 7e0cd9a45dd81a84cfbcfbe957ae69c5d9ebce76 (patch) | |
| tree | 3f7e42f2d2ec47829d6020ec4d8cd2bd12481591 /numpy/lib/tests/test_function_base.py | |
| parent | b5c62f81a2dd8af8f8d507eb990d5f4efc77ee5f (diff) | |
| download | numpy-7e0cd9a45dd81a84cfbcfbe957ae69c5d9ebce76.tar.gz | |
BUG: Only convert 0d arrays to scalars in power
Operations such as `x**array([2])` would convert the
2 into an integer and loose the dimension information,
because the array (at this time, it is deprecated),
supports `__index__` even though it is not 0-d.
This fixes it, by not trying the index machinery
when it was an array, since it is unnecessary.
Closes gh-4145
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions
