[Python-Dev] Decimal <-> float comparisons in py3k. (original) (raw)

Steven D'Aprano steve at pearwood.info
Thu Mar 18 20:20:41 CET 2010


On Fri, 19 Mar 2010 05:41:08 am Mark Dickinson wrote:

I'd really like to get this sorted for 2.7: as far as I'm concerned, either of the proposed behaviours (raise an exception, or allow comparisons) would be an improvement on the current 2.7 behaviour.

Could everyone live with making float<->Decimal comparisons raise an exception in 2.7?

Yes. I would far prefer an exception than the current incorrect results in 2.6.

-- Steven D'Aprano



More information about the Python-Dev mailing list