MemoryError Numarray

Bernhard Reimar Hoefle Bernhard.Hoefle at uibk.ac.at
Mon Sep 26 09:03:30 CEST 2005


I have the following python script:
#######################################
from numarray import *

while 1:
	a=arange(1,300000000)
	b=a*100/100
	del a
	del b
#######################################

This script crashes after a few minutes with an error:

MemoryError: Couldn't allocate requested memory

How can I avoid python to use new memory space for each loop?



More information about the Python-list mailing list