[pypy-issue] Issue #2586: decimal.py: compare_total_mag() results reversed (pypy/pypy)

Stefan Krah issues-reply at bitbucket.org
Tue Jun 20 17:16:07 EDT 2017


New issue 2586: decimal.py: compare_total_mag() results reversed
https://bitbucket.org/pypy/pypy/issues/2586/decimalpy-compare_total_mag-results

Stefan Krah:

There seems to be a glitch in compare_total_mag():

Expected:

>>> Decimal(1).compare_total_mag(-2)
Decimal('-1')


Got:

>>>> Decimal(1).compare_total_mag(-2)
Decimal('1')




More information about the pypy-issue mailing list