summaryrefslogtreecommitdiff
path: root/numpy/lib/arrayterator.py
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2015-10-10 19:59:26 -0700
committerNathaniel J. Smith <njs@pobox.com>2015-10-10 19:59:26 -0700
commit014e631a370b0a16c2b88a8fd9cec32464520fef (patch)
tree5c01057da7fee3e27e98fe624ae190c41b3ba97a /numpy/lib/arrayterator.py
parent9fbc5fa214e862ba54b2f0e2aee950f7d33cfb2a (diff)
parent18ba6812fd9de8c0d7eaf22d0e0288b4ce24e389 (diff)
downloadnumpy-014e631a370b0a16c2b88a8fd9cec32464520fef.tar.gz
Merge pull request #6445 from rgommers/arrayterator-doc
DOC: add lib.Arrayterator to reference guide. Closes gh-6404.
Diffstat (limited to 'numpy/lib/arrayterator.py')
-rw-r--r--numpy/lib/arrayterator.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/lib/arrayterator.py b/numpy/lib/arrayterator.py
index 4aa977c46..80b369bd5 100644
--- a/numpy/lib/arrayterator.py
+++ b/numpy/lib/arrayterator.py
@@ -69,9 +69,8 @@ class Arrayterator(object):
Examples
--------
- >>> import numpy as np
>>> a = np.arange(3 * 4 * 5 * 6).reshape(3, 4, 5, 6)
- >>> a_itor = np.lib.arrayterator.Arrayterator(a, 2)
+ >>> a_itor = np.lib.Arrayterator(a, 2)
>>> a_itor.shape
(3, 4, 5, 6)
@@ -149,13 +148,13 @@ class Arrayterator(object):
See Also
--------
- `Arrayterator`
+ Arrayterator
flatiter
Examples
--------
>>> a = np.arange(3 * 4 * 5 * 6).reshape(3, 4, 5, 6)
- >>> a_itor = np.lib.arrayterator.Arrayterator(a, 2)
+ >>> a_itor = np.lib.Arrayterator(a, 2)
>>> for subarr in a_itor.flat:
... if not subarr: