summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index ce1a87da4..973307220 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -68,11 +68,6 @@ def empty_like(a):
# end Fernando's utilities
-def fromiter(obj, dtype=None):
- """Return an array object from an iterator.
- """
- obj = list(obj)
- return array(obj, dtype=dtype)
def extend_all(module):
adict = {}
@@ -102,6 +97,7 @@ array = multiarray.array
zeros = multiarray.zeros
empty = multiarray.empty
fromstring = multiarray.fromstring
+fromiter = multiarray.fromiter
fromfile = multiarray.fromfile
frombuffer = multiarray.frombuffer
newbuffer = multiarray.newbuffer