[Numpy-discussion] PySequence_GetItem on numpy array doesn't inc refcount?

Neal Becker ndbecker2 at gmail.com
Fri Feb 8 11:33:35 EST 2008


Neal Becker wrote:

> It seems that calling PySequence_GetItem on a PyArrayObject does not inc
> refcount on the original object?  That is surprising.  Then, I suppose my
> code is supposed to do that itself?

Not sure what I was doing wrong before, but seems to be working as expected
now, sorry for the noise.




More information about the NumPy-Discussion mailing list