[Numpy-discussion] arrays and iterators.
Travis Oliphant
oliphant at ee.byu.edu
Mon Mar 27 16:14:00 EST 2006
Tim Hochberg wrote:
> Travis Oliphant wrote:
>
>> Tim Hochberg wrote:
>>
>>>
>>> Lest everybody think that I'm only about ripping things out, let me
>>> propose adding a feature. Well, sort of. I propose that we make:
>>>
>>> array(someiterator)
>>>
>>> an value error for right now instead of returning a rank-0 object
>>> array.
>>
>>
>>
>> I'm O.K. with that.
>> -Travis
>
>
> OK, if no one else objects in the next day or so, I'll look into doing
> it.
You might also look at having
array(generator object)
actually run the generator instead of return a rank-0 object array.
-Travis
More information about the NumPy-Discussion
mailing list