Re: [Numpy-discussion] numarray argmax problem

2007-02-09 Thread Todd Miller
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

[Numpy-discussion] numarray argmax problem

2007-02-09 Thread Otto Tronarp
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 A