[Python-Dev] PyObject_RichCompareBool identity shortcut
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 28 08:07:07 CEST 2011
Guido van Rossum wrote:
> Currently NaN is not violating
> any language rules -- it is just violating users' intuition, in a much
> worse way than Inf does.
If it's to be an official language non-rule (by which I mean
that types are officially allowed to compare non-reflexively)
then any code assuming that identity implies equality for
arbitrary objects is broken and should be fixed.
--
Greg
More information about the Python-Dev
mailing list