[Numpy-discussion] Memory leak in vectorize ?

Cyrille Rosset rosset@lal.in2p3...
Sun Oct 7 18:49:44 CDT 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