[Numpy-discussion] Array interface updated to Version 3
Travis Oliphant
oliphant.travis at ieee.org
Tue Jun 20 15:27:16 EDT 2006
Thomas Heller wrote:
> Travis Oliphant schrieb:
>> I just updated the array interface page to emphasize we now have
>> version 3. NumPy still
>
> If current implementations of the array interface use this pointer for
> other things (like keeping a reference to the array object), that's
> fine, and I don't think the specification should change. I think it is
> espscially dangerous to assume that the desc pointer is a PyObject
> pointer, Python will segfault if it is not.
You make a good point. This is not a very safe sanity check and overly
complicated for not providing safety. I've reverted it back but left in
the convention that the 'desc' pointer contain a reference to the object
exposing the interface as is the practice now.
Thanks for the review.
-Travis
More information about the NumPy-Discussion
mailing list