[Python-Dev] == on object tests identity in 3.x
Ethan Furman
ethan at stoneleaf.us
Mon Jul 7 18:09:28 CEST 2014
More information about the Python-Dev mailing list
Mon Jul 7 18:09:28 CEST 2014
- Previous message: [Python-Dev] == on object tests identity in 3.x
- Next message: [Python-Dev] == on object tests identity in 3.x
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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~
- Previous message: [Python-Dev] == on object tests identity in 3.x
- Next message: [Python-Dev] == on object tests identity in 3.x
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list