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

Luis Alberto Zarrabeitia Gomez kyrie at
Sat Nov 7 20:25:19 CET 2009

Quoting Bruno Desthuilliers <bdesth.quelquechose at>:

> > 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

Participe en Universidad 2010, del 8 al 12 de febrero de 2010
La Habana, Cuba

More information about the Python-list mailing list