This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients mark.dickinson, rhettinger, steven.daprano
Date 2009-01-04.20:20:14
SpamBayes Score 0.10825381
Marked as misclassified No
Message-id <>
> Do you think it would be worth replacing the two uses of
> conditional expressions in Decimal.from_float with if-else
> statements?

Yes, please.

> Of course, from_float still won't work with earlier versions
> of Python, but having one Decimal method unavailable seems
> like a lesser crime than making 'import decimal' fail.

Right.  I don't see an easy way around that short of having
a conditional compilation, allowing use of alternative slow
code multiplying the float repeatedly by two to build-up
the float digits.
Date User Action Args
2009-01-04 20:20:16rhettingersetrecipients: + rhettinger, mark.dickinson, steven.daprano
2009-01-04 20:20:15rhettingersetmessageid: <>
2009-01-04 20:20:15rhettingerlinkissue4796 messages
2009-01-04 20:20:14rhettingercreate