Re: [Numpy-discussion] PyArray_FromAny does not accept a generator?

2008-01-06 Thread Neal Becker
Robert Kern wrote: Neal Becker wrote: It seems that PyArray_FromAny does not accept a generator? Seems like this would be useful. It's difficult to do all the magical interpretation that PyArray_FromAny() does with a iterator of unknown length. In Python, we have fromiter() which will

[Numpy-discussion] PyArray_FromAny does not accept a generator?

2008-01-04 Thread Neal Becker
It seems that PyArray_FromAny does not accept a generator? Seems like this would be useful. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] PyArray_FromAny does not accept a generator?

2008-01-04 Thread Robert Kern
Neal Becker wrote: It seems that PyArray_FromAny does not accept a generator? Seems like this would be useful. It's difficult to do all the magical interpretation that PyArray_FromAny() does with a iterator of unknown length. In Python, we have fromiter() which will consume an iterator to