[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! I've applied a quick fix in the trunk in r74564; merged to other branches in r74565 (release26-maint), r74566 (py3k) and r74567 (release31-maint). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed _

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +marketdickinson priority: -> normal type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Stefan Krah
New submission from Stefan Krah : Hi, I believe the following comparisons aren't correct: 1: Decimal("-sNaN63450748854172416").compare_total(Decimal("-sNaN911993")) ==> Decimal('1') Should be: Decimal('-1') (checked against decNumber) 2: Decimal("NaN1").compare_total_mag(Decimal