[issue2531] float compared to decimal is silently incorrect.
Mark Dickinson
report at bugs.python.org
Sat Mar 21 19:14:05 CET 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
Here's a patch.
I'm still not 100% convinced this is a good idea. Part of my objection is
that it seems likely that these comparisons are fairly useless, in that a
mixed-type comparison is probably going to be followed by a mixed-type
arithmetic operation at some point (unless people are misspelling "x < 0"
as "x < 0.0"). So all that's really gained is a noisy failure instead of
a silent one. Still, I suppose that's something.
----------
keywords: +patch
resolution: rejected ->
stage: -> patch review
status: closed -> open
versions: +Python 2.7 -Python 2.5, Python 2.6
Added file: http://bugs.python.org/file13389/float_decimal_comparisons.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2531>
_______________________________________
More information about the Python-bugs-list
mailing list