Re: [Numpy-discussion] checking identity of arrays?
23 Feb
2001
23 Feb
'01
7:51 a.m.
John J. Lee:
I must be missing something obvious: how does one check if two variables refer to the same array object?
Paul Dubois:
if a is b:
I thought he was asking something different. Suppose I do this: a = zeros(100) b = a[10:20] Now b is a view of a's data. Is there any way to test that a and b refer to the same data? (Even if this was not John's question, I'm curious to know the answer.)
8455
Age (days ago)
8455
Last active (days ago)
0 comments
1 participants
participants (1)
-
rlw@stsci.edu