summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTim Hochberg <tim_hochberg@local>2006-06-10 20:08:53 +0000
committerTim Hochberg <tim_hochberg@local>2006-06-10 20:08:53 +0000
commit9bd3b4edcb4dfaab47bca4bfaf9407063303b211 (patch)
treed3a8d70ae9fff32248e9a7227d5e810b367a4817 /numpy/core/numeric.py
parent77762150377d2edd8934b3547f83f3a70ec75b6c (diff)
downloadnumpy-9bd3b4edcb4dfaab47bca4bfaf9407063303b211.tar.gz
Replace Python version of fromiter with one coded in C.
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