[SciPy-dev] Numeric

Manuel Metz mmetz at astro.uni-bonn.de
Thu Mar 9 05:06:03 CST 2006


Hi,
I figured out where the bug is, see attached patch.

Travis, could you please fix the bug !!!

Manuel

Manuel Metz wrote:
> 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
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrayobject.patch
Type: text/x-patch
Size: 92 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20060309/2e196b70/attachment.bin 


More information about the Scipy-dev mailing list