Re: [Numpy-discussion] numpy.any oddity

2009-02-07 Thread Suchindra Sandhu
Thanks. I tried the latest version and indeed there is no leak. Cheers, Suchindra On Fri, Feb 6, 2009 at 3:39 PM, Robert Kern wrote: > On Fri, Feb 6, 2009 at 13:24, Suchindra Sandhu > wrote: > > Hi, > > > > I accidently stumbled upon this odd behavior by numpy.any

[Numpy-discussion] numpy.any oddity

2009-02-06 Thread Suchindra Sandhu
Hi, I accidently stumbled upon this odd behavior by numpy.any. The following code leaks memory - for i in xrange(1000): print N.any({'whatever': N.arange(1000)}) Ofcourse, I called "any" on a dict object by accident, but it should not really leak memory. I am running numpy versi

Re: [Numpy-discussion] integer array creation oddity

2008-07-23 Thread Suchindra Sandhu
Thanks Everyone. On Mon, Jul 21, 2008 at 6:25 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > On Mon, Jul 21, 2008 at 3:37 PM, Stéfan van der Walt <[EMAIL PROTECTED]> > wrote: > >> 2008/7/21 Suchindra Sandhu <[EMAIL PROTECTED]>: >> > Is that

Re: [Numpy-discussion] integer array creation oddity

2008-07-21 Thread Suchindra Sandhu
, Jul 18, 2008 at 7:10 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/7/18 Suchindra Sandhu <[EMAIL PROTECTED]>: > > Can someone please explain to me this oddity? > > > > In [1]: import numpy as n > > > > In [8]: a = n.array((1,2,

[Numpy-discussion] integer array creation oddity

2008-07-18 Thread Suchindra Sandhu
Hi, Can someone please explain to me this oddity? In [1]: import numpy as n In [8]: a = n.array((1,2,3), 'i') In [9]: type(a[0]) Out[9]: In [10]: type(a[0]) == n.int32 Out[10]: False When I create an array with 'int', 'int32' etc it works fine What is the type of 'i' and what is n.int0? Th