[SciPy-dev] Numerical

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


Hi,
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 !

Manuel




More information about the SciPy-Dev mailing list