[Python-Dev] Decimal <-> float comparisons in py3k.

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

Glenn Linderman <v+python <at> g.nevcal.com> writes:
> On 3/18/2010 2:48 PM, Nick Coghlan wrote:
> > When there is a clear, correct way (based on Decimal.from_float) 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.


More information about the Python-Dev mailing list