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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to