[Python-Dev] Decimal <-> float comparisons in py3k.
Raymond Hettinger
raymond.hettinger at gmail.com
Wed Mar 17 02:27:01 CET 2010
On Mar 16, 2010, at 3:16 PM, Greg Ewing wrote:
>
> Seems to me that this education would mostly consist of saying
> "don't compare floats and decimals", which is why I think that
> disallowing them in the first place would be better.
That makes sense.
I do worry that 2.x currently does make the comparison
and gives the wrong answer. We have the ability to
make it a correct answer. But, it seems like the mood
here is that wrong-is-better-than-right for an action
that someone shouldn't be doing in the first place.
Raymond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100316/a4615a57/attachment.html>
More information about the Python-Dev
mailing list