[Numpy-discussion] Comparing x and x.view

Robert Kern robert.kern@gmail....
Wed Feb 7 21:38:30 CST 2007

Pierre GM wrote:
> All,
> I want to compare whether two arrays point to the same data.
> I've been using 'is' so far, but I'm wondering whether it's the right 
> approach.

It isn't. Your analysis is correct.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the Numpy-discussion mailing list