[Numpy-discussion] Memory leak in ndarray

David Cournapeau david@ar.media.kyoto-u.ac...
Fri Oct 26 04:22:52 CDT 2007

Robert Crida wrote:
> Hi all
> I seem to have tracked down a memory leak in the string conversion 
> mechanism of numpy. It is demonstrated using the following code:
> 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?
Hi Robert,

I cannot reproduce this on my machine. Could you give more details 
(which numpy version, etc...) ?



More information about the Numpy-discussion mailing list