diff options
author | Tim Hochberg <tim_hochberg@local> | 2006-06-10 20:08:53 +0000 |
---|---|---|
committer | Tim Hochberg <tim_hochberg@local> | 2006-06-10 20:08:53 +0000 |
commit | 9bd3b4edcb4dfaab47bca4bfaf9407063303b211 (patch) | |
tree | d3a8d70ae9fff32248e9a7227d5e810b367a4817 /numpy/core/numeric.py | |
parent | 77762150377d2edd8934b3547f83f3a70ec75b6c (diff) | |
download | numpy-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.py | 6 |
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 |