Memory pre-allocation for large lists

Avi Kak kak at purdue.edu
Wed Feb 18 01:44:50 EST 2004



Thanks, Erik.  That would work for me.

Avi


On Tue, 17 Feb 2004 22:00:09 -0800, Erik Max Francis <max at alcyone.com>
wrote:

>Avi Kak wrote:
>
>> Can the same be done in Python?
>
>Not directly, but you can just fill it with something you're not going
>to use:
>
>	arra = [None] * 999




More information about the Python-list mailing list