Mon, 01 Dec 2008 14:43:11 -0500, Neal Becker wrote: > 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)
The docstring is correct in 1.2.1 and in the documentation; I suppose you have an older version of Numpy. -- Pauli Virtanen _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion