[Python-Dev] == on object tests identity in 3.x

Ethan Furman ethan at stoneleaf.us
Tue Jul 8 01:52:17 CEST 2014


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~


More information about the Python-Dev mailing list