[Numpy-discussion] Memory leak in ndarray, more info

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

Hi all

I recently posted about a memory leak in numpy and failed to mention the
version. The leak manifests itself in numpy- but is not present in

The following code reproduces the bug:

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/3f02303a/attachment.html 

More information about the Numpy-discussion mailing list