[Numpy-discussion] numpy.any oddity

Suchindra Sandhu suchindra@gmail....
Fri Feb 6 13:24:37 CST 2009


Hi,

I accidently stumbled upon this odd behavior by numpy.any. The following
code leaks memory -

for i in xrange(10000000):
        print N.any({'whatever': N.arange(10000000)})

Ofcourse, I called "any" on a dict object by accident, but it should not
really leak memory.

I am running numpy version 1.0.4 with python 2.5.2

Cheers,
Suchindra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090206/f37e66cf/attachment.html 


More information about the Numpy-discussion mailing list