David Cournapeau wrote: > Charles R Harris wrote: > >> And I'm not sure self->desc needs its reference count decremented, >> PyArray_FromArray is one of those vicious, nasty functions with side >> effects and might decrement the count itself. >> > > might ? What do you mean by might decrement ? If the call to > PyAarray_FromArray fails, no reference are stolen, right ? >
No, that's not right. The reference is stolen if it fails as well. This is true of all descriptor data-types. Perhaps it is weird, but it was a lot easier to retro-fit Numeric PyArray_Descr as a Python object that way. -Travis _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
