[Python-Dev] Mixing float and Decimal -- thread reboot (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 21 06:00:47 CET 2010


Nick Coghlan wrote:

int -> Decimal -> Fraction -> float -> complex

I don't think it's a good idea to put Decimal below Fraction, because Decimal has to be considered an implicitly inexact type like float, and we don't want to coerce from an inexact type to an exact one.

-- Greg



More information about the Python-Dev mailing list