[issue2531] float compared to decimal is silently incorrect.
Mark Dickinson
report at bugs.python.org
Sat Nov 14 23:37:14 CET 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Just closed issue 7323 as a duplicate of this one.
I think this issue is worth reopening: with the backport of the py3k
correctly rounded string <-> float conversions, there might now be a
reasonable way to rewrite Decimal.__hash__ so that it's consistent with
float.__hash__. Then we can make Decimal-to-float comparisons behave
correctly and clear up this mess.
I'd still be uncomfortable with allowing Decimal-to-float comparisons in
2.x but not in 3.x. Maybe they could be permitted in 3.x too?
----------
resolution: wont fix ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2531>
_______________________________________
More information about the Python-bugs-list
mailing list