On Tue, Jan 29, 2008 at 02:58:15PM +0100, Oriol Vendrell wrote: > Hi all, > > I've noticed something that looks like an odd behaviour in array.argsort(). > > > # test1 --------------------- > from numpy import array > while True: > a=array([8.0,7.0,6.0,5.0,4.0,2.0]) > i=a.argsort() > # --------------------------- > > # test2 --------------------- > from numpy import array > a=array([8.0,7.0,6.0,5.0,4.0,2.0]) > while True: > i=a.argsort() > # --------------------------- > > > test1 runs out of memory after a few minutes, it seems that in each cycle > some memory is allocated and never returned back. > test2 runs fine until killed. > > I'm unsure if I'm missing something or if this could be a bug. I'm using > numpy 1.0.1 with python 2.4.4 in a debian stable system.
Certainly a bug, but it has been fixed and I cannot reproduce in debian sid (using 1.0.4-5) -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science
signature.asc
Description: Digital signature
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion