[Python-Dev] FP vs. tutorial

Aahz Maruch aahz@rahul.net
Mon, 21 May 2001 13:42:15 -0700 (PDT)


Guido van Rossum wrote:
> 
>>> Or maybe the full story can be an appendix.
>> 
>> Or maybe Decimal should go in the standard distribution?  What kind of
>> deadline do I have for finishing that to go into 2.2?
> 
> Adding Decimal to the distribution is fine.  But using it by default
> for floating point literals and other floating point results is a
> different story.  The PEP about that hasn't really been discussed
> enough to make a decision, but a conservative estimate is that this
> change won't be made in 2.2.  So Decimal doesn't solve the problem the
> tutorial has.

Wasn't thinking of going quite that far, only changing the tutorial to
say something like, "If you want speed, use the hardware FP (which is
directly supported by Python's floating literals); if you want accuracy,
use Decimal."  (Or FixedPoint, which is already in the distribution.)
The full story needn't go in the Appendix; we can simply refer people to
Cowlishaw and Kahan.
-- 
                      --- Aahz (@pobox.com)

Hugs and backrubs -- I break Rule 6       <*>       http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista

I don't really mind a person having the last whine, but I do mind
someone else having the last self-righteous whine.