Memory problem

Yi Xing yxing at stanford.edu
Mon Aug 14 16:26:34 EDT 2006


On a related question: how do I initialize a list or an array with a 
pre-specified number of elements, something like
int p[100] in C? I can do append() for 100 times but this looks silly...

Thanks.

Yi Xing




More information about the Python-list mailing list