[pypy-issue] Issue #2587: decimal.py: compare_total(): unexpected result with NaN operand (pypy/pypy)
Stefan Krah
issues-reply at bitbucket.org
Tue Jun 20 17:28:10 EDT 2017
New issue 2587: decimal.py: compare_total(): unexpected result with NaN operand
https://bitbucket.org/pypy/pypy/issues/2587/decimalpy-compare_total-unexpected-result
Stefan Krah:
NaN operands are handled differently from _pydecimal:
Expected:
```
>>> Decimal('4367').compare_total(Decimal('NaN'))
Decimal('-1')
```
Got:
```
>>>> Decimal('4367').compare_total(Decimal('NaN'))
Decimal('NaN')
```
More information about the pypy-issue
mailing list