Message74631
2008/10/9 Raymond Hettinger <report@bugs.python.org>:
> Alternatively, we could decide to allow decimal/float
> comparisons -- the float can be converted to a decimal
> exactly and compared exactly -- it would be slow but
> it would work and have precise semantics.
-0
Note that this could lead to surprising behaviours, when doing these
comparations... Decimal("1.1")==1.1 will be true, buy maybe
Decimal("1.235445687")==1.235445687 will not (I didn't try if this
particular comparison will fail, but hope you get the idea).
This is why I suggested the other way... we now allow comparison to
integers, let's allow comparisons when the floats are equal to the
integers, and no more. |
|
Date |
User |
Action |
Args |
2008-10-10 12:22:20 | facundobatista | set | recipients:
+ facundobatista, georg.brandl, rhettinger, terry.reedy, mark.dickinson |
2008-10-10 12:22:20 | facundobatista | set | messageid: <1223641340.41.0.196539272218.issue4087@psf.upfronthosting.co.za> |
2008-10-10 12:21:20 | facundobatista | link | issue4087 messages |
2008-10-10 12:21:19 | facundobatista | create | |
|