[Python-Dev] == on object tests identity in 3.x
Ethan Furman
ethan at stoneleaf.us
Tue Jul 8 01:52:17 CEST 2014
More information about the Python-Dev mailing list
Tue Jul 8 01:52:17 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 04:49 PM, Benjamin Peterson wrote: > > Probably the best argument for the behavior is that "x is y" should > imply "x == y", which preludes raising an exception. No such invariant > is desired for ordering, so default implementations of < and > are not > provided in Python 3. Nice. This bit should definitely make it into the doc patch if not already in the docs. -- ~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