[Python-Dev] Decimal <-> float comparisons in py3k.
Mark Dickinson
dickinsm at gmail.com
Tue Mar 16 17:25:32 CET 2010
On Tue, Mar 16, 2010 at 4:18 PM, Victor Stinner
<victor.stinner at haypocalc.com> wrote:
> If comparaison of Decimal and float can have "unpredictable" result, I would
> suggest the same behaviour (raise an error).
Well, it's not really `unpredictable': the new behaviour is perfectly
predictable and sane, provided only that you remember the basic fact
that float("0.1") is not exactly 0.1.
Mark
More information about the Python-Dev
mailing list