[Python-Dev] Decimal & amp; lt; -& amp; gt; float comparisons in py3k.
Terry Reedy
tjreedy at udel.edu
Sat Mar 20 00:03:59 CET 2010
On 3/19/2010 3:16 PM, Glenn Linderman wrote:
> I perceive that the whole thread is about _all_ comparison operators with
> one float and one decimal operand currently producing an exception (3.x)
Not true for equality comparison. That returns False regardless of
value, just as order comparisons return what they do in 2.x regardless
of value. I claim that the former is at least as bad as the latter for
numbers.
> or a type-based ordering (2.x).
3.x mixes type-based and value-based equality testing for Decimals and
other numbers.
Terry Jan Reedy
More information about the Python-Dev
mailing list