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

Antoine Pitrou solipsis at pitrou.net
Fri Mar 19 02🔞27 CET 2010


Glenn Linderman <v+python g.nevcal.com> writes:

On 3/18/2010 2:48 PM, Nick Coghlan wrote: > When there is a clear, correct way (based on Decimal.fromfloat) to make > numeric comparison behave in accordance with the rules of mathematics, > do we really want to preserve strange, unintuitive behaviour like the above? I'm aware of nothing that prevents the lazy coder from having a class unifiedNumber in his toolbox [snip]

Please stick to the topic. We are talking about Python's default behaviour here.

Antoine.



More information about the Python-Dev mailing list