Most efficient way to "pre-grow" a list?

Luis Alberto Zarrabeitia Gomez kyrie at uh.cu
Sat Nov 7 14:25:19 EST 2009


Quoting Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr>:

> > Another situation where one may want to do this is if one needs to
> > initialize a non-sparse array in a non-sequential order,
> 
> Then use a dict.

Ok, he has a dict.

Now what? He needs a non-sparse array.

-- 
Luis Zarrabeitia
Facultad de Matemática y Computación, UH
http://profesores.matcom.uh.cu/~kyrie

-- 
Participe en Universidad 2010, del 8 al 12 de febrero de 2010
La Habana, Cuba 
http://www.universidad2010.cu




More information about the Python-list mailing list