[Numpy-discussion] Memory leak in ndarray, more info

Matthieu Brucher matthieu.brucher at gmail.com
Fri Oct 26 06:46:20 EDT 2007


Which version Python are you using ?

Matthieu

2007/10/26, Robert Crida <robert.crida at ska.ac.za>:
>
> Hi all
>
> I recently posted about a memory leak in numpy and failed to mention the
> version. The leak manifests itself in numpy-1.0.3.1 but is not present in
> numpy-1.0.2
>
> The following code reproduces the bug:
>
> import numpy as np
>
> a = np.array([1.0, 2.0, 3.0])
> while True:
>     b = str(a)
>
> What happens above is that is repeatedly converted to a string. The
> process size grow quite rapidly.
>
> Has anyone else come across this? Where do I look to try to correct it?
>
> Thanks
>  Robert
>
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>


-- 
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071026/73bb1154/attachment.html>


More information about the NumPy-Discussion mailing list