This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lorg
Recipients facundobatista, jdunck, lorg
Date 2009-03-17.19:24:23
SpamBayes Score 7.256597e-09
Marked as misclassified No
Message-id <1237317926.89.0.69526137867.issue2531@psf.upfronthosting.co.za>
In-reply-to
Content
This behavior also exists in Python 2.6. However, in Python 3 an
exception is raised instead, as these kinds of comparisons are
considered incorrect.
Because of that, I'd like Python 3's behavior of raising exceptions on
float-decimal comparisons to be backported to Python 2.6.


As an aside, regardless of Python 3's behavior, there is a big
difference between 2<"1.9" and 1.6 < decimal("2.0"). It seems reasonable
to expect decimal comparisons to be made according to numerical value.
When this doesn't happen, it is better to fail loudly rather than silently.
History
Date User Action Args
2009-03-17 19:25:27lorgsetrecipients: + lorg, facundobatista, jdunck
2009-03-17 19:25:26lorgsetmessageid: <1237317926.89.0.69526137867.issue2531@psf.upfronthosting.co.za>
2009-03-17 19:24:26lorglinkissue2531 messages
2009-03-17 19:24:25lorgcreate