I tried the following code:
... i=i+1
... a.append(float( i))
...
Traceback (most recent call last):
File "<stdin>", line 3, in ?
MemoryError
to see the size of the array at the time of memory error:
8539248.
I use Windows XP x64 with 4GB RAM.
>>i=0
>>n=2600*2600*3 0
>>a=array.array ("f")
>>while (i<=n):
>>n=2600*2600*3 0
>>a=array.array ("f")
>>while (i<=n):
... a.append(float( i))
...
Traceback (most recent call last):
File "<stdin>", line 3, in ?
MemoryError
to see the size of the array at the time of memory error:
>>>len(a)
I use Windows XP x64 with 4GB RAM.
Comment