[Numpy-discussion] when and where to use numpy arrays vs nested lists

Travis Oliphant oliphant@ee.byu....
Thu Mar 1 16:10:04 CST 2007


Mark P. Miller wrote:

>>Ops, this seems a bug with your numpy version:
>>
>>In [46]:array1 = numpy.zeros((10,10),int)
>>In [47]:array1.itemset((5,5),9)
>>In [48]:array1
>>Out[48]:
>>array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 9, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
>>       [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
>>In [49]:array1.item(5,5)
>>Out[49]:9
>>In [50]:numpy.__version__
>>Out[50]:'1.0.2.dev3546'
>>
>>So, this seems solved in SVN.
>>
>>    
>>
>
>OK...thanks for the reassurance.
>
>Is there any indication of when the next release will be made?  I'm not 
>savvy enough with these things to work with the svn releases.
>  
>
Any day now.    I'm working on revisions to a paper right now and don't 
have time, but perhaps next week.

-Travis



More information about the Numpy-discussion mailing list