[Python-Dev] Mixing float and Decimal -- thread reboot
Nick Coghlan
ncoghlan at gmail.com
Mon Mar 22 23:19:35 CET 2010
Raymond Hettinger wrote:
> * The coercion logic for comparisons won't match the
> coercion logic for arithmetic operations. The former
> strives to be exact and to be consistent with hashing
> while the latter goes in the opposite direction.
Although Guido pointed out that float/long comparisons and coercions
blazed the trail on this particular discrepancy years ago.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev
mailing list