Memory problem

Larry Bates larry.bates at websafe.com
Mon Aug 14 16:14:10 EDT 2006


Yi Xing wrote:
> 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.
> 
On my 1Gb machine this worked just fine, no memory error.

-Larry Bates



More information about the Python-list mailing list