[Numpy-discussion] Memory leak in vectorize ?

Cyrille Rosset rosset at lal.in2p3.fr
Sun Oct 7 19:49:44 EDT 2007


Hello,
the following code seems to create a memory leak in Python.
(around 230 MB).
Any ideas what's wrong ?
I'm using python 2.5 and numpy 1.0.3
-------------------
def toto(x):
     return x**2

tutu=vectorize(toto)

Nbins=10000
for i in xrange(1000):
     c=tutu(arange(Nbins))
-------------------

Thanks,
Cyrille.



More information about the NumPy-Discussion mailing list