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.

作者 rhettinger
收信人 facundobatista, jdunck, lorg, mark.dickinson, rhettinger
日期 2009-03-17.19:51:18
SpamBayes Score 0.0009792408
Marked as misclassified
Message-id <1237319481.35.0.292710909373.issue2531@psf.upfronthosting.co.za>
In-reply-to
内容
Imri, I don't think the 3.0 model for cross-type comparisons can be
backported without breaking code, so it probably isn't going to happen.
 The whole purpose of the 3.x series was to allow improvements that
weren't backwards compatible.

Mark, this raises a question for us.  Now that we have
decimal.from_float(), we do have a means of making exact comparisons
between decimals and floats.  While I think cross-type interaction is
generally a bad idea, the 2.x way of doing things already gives an
answer (though somewhat useless).  What are your thoughts on making
Decimal('0.80') < float('0.75') do the right thing in the 2.x series so
that the answer that is given won't be flat-out wrong.
历史
日期 用户 动作 参数
2009-03-17 19:51:21rhettinger修改recipients: + rhettinger, facundobatista, mark.dickinson, jdunck, lorg
2009-03-17 19:51:21rhettinger修改messageid: <1237319481.35.0.292710909373.issue2531@psf.upfronthosting.co.za>
2009-03-17 19:51:19rhettinger链接issue2531 messages
2009-03-17 19:51:18rhettinger创建