summaryrefslogtreecommitdiff
path: root/numpy/doc/indexing.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/doc/indexing.py')
-rw-r--r--numpy/doc/indexing.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/doc/indexing.py b/numpy/doc/indexing.py
index 676015668..6b15a7a9e 100644
--- a/numpy/doc/indexing.py
+++ b/numpy/doc/indexing.py
@@ -372,8 +372,7 @@ exceptions (assigning complex to floats or ints): ::
>>> x[1]
1
>>> x[1] = 1.2j
- <type 'exceptions.TypeError'>: can't convert complex to long; use
- long(abs(z))
+ TypeError: can't convert complex to int
Unlike some of the references (such as array and mask indices)
@@ -446,4 +445,3 @@ converted to an array as a list would be. As an example: ::
40
"""
-from __future__ import division, absolute_import, print_function