[issue11949] Make float('nan') unorderable

Mark Dickinson report at bugs.python.org
Sat May 21 21:48:17 CEST 2011


Mark Dickinson <dickinsm at gmail.com> added the comment:

> What is the reason to make them quiet for floats other
> than backward compatibility?

For me, none.  I'll happily agree that, all other things being equal, it's more natural (and more consistent with other languages) to have < correspond to the signaling operation, and in a new language that's probably what I'd go for.  But as a *change* to existing behaviour in a language that's been widely adopted for numerical work, the risk of breakage seems to me to outweigh any benefits.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11949>
_______________________________________


More information about the Python-bugs-list mailing list