[Numpy-discussion] fromiter typo?

Neal Becker ndbecker2@gmail....
Mon Dec 1 13:43:11 CST 2008


Says it takes a default dtype arg, but doesn't act like it's an optional arg:

fromiter (iterator or generator, dtype=None)
Construct an array from an iterator or a generator. Only handles 1-dimensional
cases. By default the data-type is determined from the objects returned from
the iterator.

---> 20 z = fromiter (y)

TypeError: function takes at least 2 arguments (1 given)




More information about the Numpy-discussion mailing list