I thought 'is' operator would return True if the two variables are pointing the same object. (not just value)
In the example below,
a = np.array([1,2,3,4])
b = a[1:3]
b[0] = 11
then a[1] value will be changed to 11.
And b array will be pointing to the a[1:3].
So I thought 'b[0] is a[1]' would return True. (b[0] and a[1] are referencing the same object) But that line returned False.
Could you help me to understand why the result is False?
Thanks