On Mon, Nov 9, 2009 at 10:42 AM, Stefan Krah <stefan-use...@bytereef.org> wrote: > I can also give a decimal use case where the current behavior is problematic > A variable initialized to a signaling NaN should always cause an exception. > > But this doesn't: > > salary = Decimal("sNaN") > minimum_wage = 1000 > if (salary == minimum_wage): > print "do stuff" > else: > print "do other stuff"
Hmm. This does look suspicious. It's possible we should be raising for signalling nans here. For most of what I wrote above I was thinking of quiet nans. Mark _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com