[Numpy-discussion] Memory leak in ndarray

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

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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20071026/22e136bc/attachment.html 

More information about the Numpy-discussion mailing list