[Numpy-discussion] arrays and iterators.

Travis Oliphant oliphant at ee.byu.edu
Mon Mar 27 16:10:04 CST 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.


Just to be clear.  You are only going to change the case which does 
presently return a rank-0 object array, right?

someiterator could be an array, or a list in which case 
array(someiterator) already does an intelligible thing.

-Travis





More information about the Numpy-discussion mailing list