
April 28, 2011
5 p.m.
On Thu, Apr 28, 2011 at 12:46 PM, Robert Kern <robert.kern@gmail.com> wrote: ..
Python uses the < operator for sorting, not a comparison function, so it's current behavior is perfectly in line with the IEEE-754 spec.
No, it is not. As I explained in the previous post, IEEE-754 prescribes different behavior for <, >, <=, and >= operations and != and ==. The former signal INVALID exception while the later don't. Python does not make this distinction.