Otto Tronarp wrote: > Hi, > > I have a problem with numarray.argmax, the following code > > import numarray as N > import sys > c = N.zeros((10, ), N.Float64) > while 1: > print 'B: ', sys.getrefcount(None) > l = N.argmax(c) > print 'A: ', sys.getrefcount(None) > print > > Dies with: > Fatal Python error: deallocating None > Aborted > > I'm using numarray 1.5.2 > > Any chance that there is an easy fix for this? I know I should > If you're willing to check out numarray and build it from source yourself, this problem is fixed in numarray CVS here:
http://sourceforge.net/cvs/?group_id=1369 You can check it out like this: cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/numpy login cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/numpy co -P /numarray / Regards, Todd > consider switching to numpy, but I don't have the time right now to do > that. > > Otto > > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://projects.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion