diff options
author | Travis E. Oliphant <teoliphant@gmail.com> | 2013-01-11 01:10:26 -0600 |
---|---|---|
committer | Travis E. Oliphant <teoliphant@gmail.com> | 2013-01-11 01:11:12 -0600 |
commit | d1a055b0cd5ad82106901a274d58563df4cd5070 (patch) | |
tree | 927e02f486b2d3bb300d12c7c8ecad3b07f42c46 /numpy/lib | |
parent | aef2cf73aafc9a945d88cb9464f62135b177a2f4 (diff) | |
download | numpy-d1a055b0cd5ad82106901a274d58563df4cd5070.tar.gz |
Fix 0-d ndincr to have correct return value.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 6bb06b7b6..852c5f6fd 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -542,7 +542,7 @@ class ndindex(object): def __iter__(self): return self def ndincr(self): - return self.next() + self.next() def next(self): if self._N > 0: self._N -= 1 |