[Numpy-discussion] Memory leak in ndarray

Robert Crida robert.crida@ska.ac...
Fri Oct 26 06:14:12 CDT 2007


Hi

I don't think it is a python issue because if you change the line b = str(a)
to just read
str(a)
then the problem still occurs.

Also, if you change a to be a list instead of ndarray then the problem does
not occur.

Cheers
Robert


On 10/26/07, Matthew Brett <matthew.brett@gmail.com> wrote:
>
> Hi,
>
> > 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)
>
> Would you not expect python rather than numpy to be dealing with the
> memory here though?
>
> Matthew
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20071026/25c86052/attachment.html 


More information about the Numpy-discussion mailing list