[Matrix-SIG] Numpy array.tolist() memory leak ?

Jonah Lee ffjhl@uaf.edu
Sun, 27 Sep 1998 22:21:42 -0800 (AKDT)


Hi,

There seems to be a memory leak with the following example:

from Numeric import *
a=array([[1,2,3],[4,5,6],[7,8,9]], Float)
for i in range(100000):
    for j in range(100000):
        c=a.tolist()

If a=array([1,2,3,4]), then there is no leak.

Any advice on this would be appreciated. Thanks.

Regards,
Jonah