diff options
author | gfyoung <gfyoung17@gmail.com> | 2015-12-19 16:49:35 -0800 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2015-12-19 16:50:09 -0800 |
commit | 8bc592fabf4a2b0bc76db996b1523330ba095be3 (patch) | |
tree | c8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/lib/index_tricks.py | |
parent | e2bdaccba1a8691f9223b059b981b2890bb13b09 (diff) | |
download | numpy-8bc592fabf4a2b0bc76db996b1523330ba095be3.tar.gz |
DOC: Use print only as function when print_function is imported from __future__
Closes gh-6863.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 8bcc3fb53..a0875a25f 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -491,7 +491,7 @@ class ndenumerate(object): -------- >>> a = np.array([[1, 2], [3, 4]]) >>> for index, x in np.ndenumerate(a): - ... print index, x + ... print(index, x) (0, 0) 1 (0, 1) 2 (1, 0) 3 @@ -542,7 +542,7 @@ class ndindex(object): Examples -------- >>> for index in np.ndindex(3, 2, 1): - ... print index + ... print(index) (0, 0, 0) (0, 1, 0) (1, 0, 0) |