[Numpy-discussion] test if two arrays share the same data
Ernest Adrogué
eadrogue@gmx....
Sun Sep 5 14:12:34 CDT 2010
Hi,
How can it be done?
id() doesn't do it:
In [238]: a= np.arange(5)
In [239]: id(a) == id(a[:])
Out[239]: False
Any ideas?
Ernest
More information about the NumPy-Discussion
mailing list