[Numpy-discussion] Memory leak in ndarray

Matthew Brett matthew.brett@gmail....
Fri Oct 26 05:52:40 CDT 2007


> 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?


More information about the Numpy-discussion mailing list