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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion