Is nan in (nan,) correct?

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Mar 5 23:46:01 EST 2015


On 06/03/2015 04:37, random832 at fastmail.us wrote:
> On Thu, Mar 5, 2015, at 22:49, Chris Angelico wrote:
>> I'm not sure it's just an optimization. Compare this post from
>> python-dev, where Nick Coghlan discusses the same topic:
>>
>> https://mail.python.org/pipermail/python-dev/2014-July/135476.html
>
> If it is a bug for NaN to "infect" containers' behavior, we need to take
> a serious look at sort().
>

I entirely agree.  With the extremely serious bug that was reported (and 
fixed) just a few days ago in the Python sorting algorithm and/or code, 
it is quite clear to me that it probably needs a major rethink.  After 
you :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list