[SciPy-dev] Numerical

Manuel Metz mmetz at astro.uni-bonn.de
Mon Feb 20 07:10:46 CST 2006

I know that development of Numeric has ceased and we should switch to
numpy. Nevertheless there will be some code around which still uses
Numeric, maybe for some years. Therefore:

I found a memory leak in Numeric 24.2. I noticed it on Windows and Linux
(Debian). The following code consumes lots of memory which it should not
do !!!

from Numeric import *
for i in xrange(1000000):
    a = array( [1,2,3] )
    b = a.tolist() # <- here seams to be the memory leak

Could anyone fix that !? PLEASE !


More information about the Scipy-dev mailing list