[issue1580] Use shorter float repr when possible

2009-02-26 Thread Preston Briggs
Preston Briggs added the comment: This all started with email to Guido that y'all didn't see, wherein I wondered if Python was interested in such a thing. Guido said: Sure, in principle, please see the discussion associated with this change. I probably don't have all the req

[issue1580] Use shorter float repr when possible

2009-02-25 Thread Preston Briggs
Preston Briggs added the comment: >> It'd probably have to be touched up a bit. > This may be an understatement. :-) Probably so. Nevertheless, it's got to be easier than approaching the problem from scratch. And considering that this discussion has been going on for

[issue1580] Use shorter float repr when possible

2009-02-25 Thread Preston Briggs
Preston Briggs added the comment: In all this discussion, it seems that we have not discussed the possibility of adapting David Gay's code, dtoa.c, which nicely handles both halves of the problem. It's also free and has been well exercised over the years. It's avail