[Python-Dev] Mixing float and Decimal -- thread reboot
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Mar 21 23:41:49 CET 2010
Raymond Hettinger wrote:
>
> Remember, the notion of inexactness is a taint,
> not an intrinsic property of a type. Even the Scheme numeric
> tower recognizes this. LIkewise, the decimal specification also
> spells-out this notion as basic to its design.
I'm not sure it really does, otherwise every decimal
value would have a flag indicating whether it was
tainted with inexactness, and this flag would propagate
through calculations.
--
Greg
More information about the Python-Dev
mailing list