Memory problem

Yi Xing yxing at stanford.edu
Mon Aug 14 14:32:17 EDT 2006


Hi,

I need to read a large amount of data into a list. So I am trying to 
see if I'll have any memory problem. When I do
x=range(2700*2700*3) I got the following message:

Traceback (most recent call last):
	File "<stdin>", line 1, in ?
MemoryError

Any way to get around this problem? I have a machine of 4G memory. The 
total number of data points (float) that I need to read is in the order 
of 200-300 millions.

Thanks.




More information about the Python-list mailing list