Message121969
| Author |
mark.dickinson |
| Recipients |
eric.araujo, eric.smith, ezio.melotti, mark.dickinson, rhettinger, skrah, terry.reedy |
| Date |
2010年11月21日.19:26:36 |
| SpamBayes Score |
1.7549133e-05 |
| Marked as misclassified |
No |
| Message-id |
<1290367598.2.0.278985291625.issue7094@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I haven't done a full review, but this looks good at first glance.
For '#g' formatting on the Decimal type, I wonder whether the patch gives the right semantics. E.g., should
format(Decimal('1.23'), '#.6g')
give '1.23' or '1.23000'? For the float type, the '#.<precision>g' formatting has the property that <precision> digits are always returned, and I think this may be what we want here. I'm not sure, though. |
|