Message121510
[Stefan]
> ... a direct request to raise an exception...
Understood; the issue is that this conflicts with the general expectation that equality (and inequality) comparisons always work (at least, for objects that are perceived as immutable). I think there needs to be a very good reason to have an equality comparison raise an exception, and I don't find this particular reason good enough. The expected IEEE 754 semantics are still available through the published API: e.g., using Decimal.compare instead of '=='.
So I'd lean towards having '==' follow Python rules rather than IEEE 754 rules in this case, with Decimal.compare available for the times when the IEEE 754 rules are important. |
|
Date |
User |
Action |
Args |
2010-11-19 11:12:19 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, terry.reedy, amaury.forgeotdarc, skrah |
2010-11-19 11:12:19 | mark.dickinson | set | messageid: <1290165139.77.0.707431544334.issue10356@psf.upfronthosting.co.za> |
2010-11-19 11:12:17 | mark.dickinson | link | issue10356 messages |
2010-11-19 11:12:17 | mark.dickinson | create | |
|