On Wednesday 07 February 2007 23:09:16 Travis Oliphant wrote: > > So, there's no real point in using the Python 'id' function ? Do we need > > a shortcut to __array_interface__['data'] as id number ? > > You have it (sort of a short-cut). > > .ctypes.data
OK, great, thanks a lot On Wednesday 07 February 2007 23:05:46 Robert Kern wrote: > > Do we need a > > shortcut to __array_interface__['data'] as id number ? > > I'm not sure that would be useful. Different arrays may share the same > starting pointer but have different strides, and arrays may also have > different starting pointers but share some overlapping data. So, in the first case, I can still compare the __array_interfaces__, right ? If they're equal, then the two arrays are strictly equivalent. In the second case, even if the arrays share some overlapping data, they're intrinsically different, so a test on whether the data has been copied/moved around would fail anyway. Well, thank y'all again. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion