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 mark.dickinson
Recipients eric.smith, facundobatista, mark.dickinson, rhettinger
Date 2009-03-17.21:17:43
SpamBayes Score 6.2172504e-08
Marked as misclassified No
Message-id <1237324720.46.0.178540193331.issue2110@psf.upfronthosting.co.za>
In-reply-to
Content
New version of decimal_n_format.patch, with support for the thousands 
separator (PEP 378).  As discussed on python-dev, during zero-padding the 
patched code adds an extra '0' on the left to avoid a leading ',' if 
necessary.  For example:

>>> format(Decimal('123456'), '08,')
'0,123,456'

The Decimal.__format__ method (and support code) had to be fairly 
significantly reworked.  However, I'm reasonably confident that this code 
is correct:  a patch review would be welcome if anyone has the time;  
otherwise I'll commit this in a couple of days or so.
History
Date User Action Args
2009-03-17 21:18:40mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, facundobatista, eric.smith
2009-03-17 21:18:40mark.dickinsonsetmessageid: <1237324720.46.0.178540193331.issue2110@psf.upfronthosting.co.za>
2009-03-17 21:17:48mark.dickinsonlinkissue2110 messages
2009-03-17 21:17:48mark.dickinsoncreate