Message83691
This behavior also exists in Python 2.6. However, in Python 3 an
exception is raised instead, as these kinds of comparisons are
considered incorrect.
Because of that, I'd like Python 3's behavior of raising exceptions on
float-decimal comparisons to be backported to Python 2.6.
As an aside, regardless of Python 3's behavior, there is a big
difference between 2<"1.9" and 1.6 < decimal("2.0"). It seems reasonable
to expect decimal comparisons to be made according to numerical value.
When this doesn't happen, it is better to fail loudly rather than silently. |
|
Date |
User |
Action |
Args |
2009-03-17 19:25:27 | lorg | set | recipients:
+ lorg, facundobatista, jdunck |
2009-03-17 19:25:26 | lorg | set | messageid: <1237317926.89.0.69526137867.issue2531@psf.upfronthosting.co.za> |
2009-03-17 19:24:26 | lorg | link | issue2531 messages |
2009-03-17 19:24:25 | lorg | create | |
|