Permalink
Browse files

DOC: BUG: correct description of ndarray iterator. Closes #1687.

  • Loading branch information...
1 parent 6d49edc commit 9273a6139e7b797244b5b88fb371059cc7c3ea3a @rgommers rgommers committed Nov 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/source/reference/arrays.classes.rst
@@ -340,7 +340,7 @@ The default iterator of an ndarray object is the default Python
iterator of a sequence type. Thus, when the array object itself is
used as an iterator. The default behavior is equivalent to::
- for i in arr.shape[0]:
+ for i in xrange(arr.shape[0]):
val = arr[i]
This default iterator selects a sub-array of dimension :math:`N-1`

0 comments on commit 9273a61

Please sign in to comment.