[Python-Dev] == on object tests identity in 3.x (original) (raw)

Ethan Furman ethan at stoneleaf.us
Mon Jul 7 18:09:28 CEST 2014


On 07/07/2014 08:29 AM, Andreas Maier wrote:

So the Python 2.7 implementation shows the same discrepancy as Python 3.x regarding the == and != default implementation.

Why do you see this as a discrepancy?

Just because two instances from the same object have the same value does not mean they are equal. For a real-life example, look at twins: biologically identical, yet not equal.

looking-forward-to-the-rebuttal-mega-thread'ly yrs,

Ethan



More information about the Python-Dev mailing list