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.

作者 lorg
收信人 facundobatista, jdunck, lorg
日期 2009-03-17.19:24:23
SpamBayes Score 7.256597e-09
Marked as misclassified
Message-id <1237317926.89.0.69526137867.issue2531@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2009-03-17 19:25:27lorg修改recipients: + lorg, facundobatista, jdunck
2009-03-17 19:25:26lorg修改messageid: <1237317926.89.0.69526137867.issue2531@psf.upfronthosting.co.za>
2009-03-17 19:24:26lorg链接issue2531 messages
2009-03-17 19:24:25lorg创建