This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients JD-Veiga, docs@python, facundobatista, mark.dickinson, rhettinger, skrah, tim.peters
Date 2020-07-04.09:22:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593854550.05.0.161116583081.issue41205@roundup.psfhosted.org>
In-reply-to
Content
Agreed, and it's even slightly worse with the ROUND_FLOOR special case:

>>> c.rounding = ROUND_FLOOR
>>> +Decimal("-0")
Decimal('-0')
>>> 

That's why there are three slightly different methods for applying the
context:

   1) context.create_decimal() ==> special case for NaN payloads.

   2) context.apply() (private method) ==> no special cases at all.

   3) Decimal.plus() ==> ROUND_FLOOR special case.
History
Date User Action Args
2020-07-04 09:22:30skrahsetrecipients: + skrah, tim.peters, rhettinger, facundobatista, mark.dickinson, docs@python, JD-Veiga
2020-07-04 09:22:30skrahsetmessageid: <1593854550.05.0.161116583081.issue41205@roundup.psfhosted.org>
2020-07-04 09:22:30skrahlinkissue41205 messages
2020-07-04 09:22:29skrahcreate