lists as an efficient implementation of large two-dimensional arrays(!)

Terry Reedy tjreedy at udel.edu
Tue Feb 2 17:54:51 EST 2010


On 2/2/2010 3:14 PM, Mitchell L Model wrote:

> I need a 1000 x 1000 two-dimensional array of objects.

I would just use 1000 element list, with each element being a 1000 
element list or array (if possible). Then l2d[i][j] works fine.




More information about the Python-list mailing list