Message195855
On 20/08/13 22:43, Mark Dickinson wrote:
> I agree with Oscar about sum for decimal.Decimal. The *ideal* sum for Decimal instances would return the correctly rounded result (i.e., the exact result, rounded to the current context just once using the current rounding mode). It seems wrong to give a guarantee of behaviour that's in conflict with this ideal.
Okay, I know when I'm beaten :-)
Documentation will no longer make reference to "honouring the context", as currently stated, and specific example shown will be dropped. Patch to follow. Changing the actual implementation of sum will follow later. If Oscar is willing, I'd like to discuss some of his ideas off-list, but that may take some time.
What else is needed before I can ask for a decision on the PEP? |
|
Date |
User |
Action |
Args |
2013-08-22 02:43:11 | steven.daprano | set | recipients:
+ steven.daprano, terry.reedy, gregory.p.smith, ronaldoussoren, mark.dickinson, belopolsky, pitrou, agthorr, christian.heimes, stutzbach, sjt, ethan.furman, tshepang, oscarbenjamin, vajrasky |
2013-08-22 02:43:11 | steven.daprano | link | issue18606 messages |
2013-08-22 02:43:11 | steven.daprano | create | |
|