[Numpy-discussion] Memory leak in ndarray

Matthew Brett matthew.brett at gmail.com
Fri Oct 26 06:52:40 EDT 2007


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



More information about the NumPy-Discussion mailing list