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
Recipients eric.smith, mark, mark.dickinson
Date 2008-05-09.14:55:32
SpamBayes Score 0.010313914
Marked as misclassified No
Message-id <200805091555.26526.mark@qtrac.eu>
In-reply-to <1210344141.48.0.781747387278.issue2802@psf.upfronthosting.co.za>
Content
On 2008-05-09, Eric Smith wrote:
> Eric Smith <eric@trueblade.com> added the comment:
>
> The reason for this is that 'n' is defined in PEP 3101 as being a float
> format only, and the rule is that if an integer sees a float format, it
> does a float conversion and then prints the float with the supplied format.
>
> I'd be okay with adding 'n' as an integer format, with the loose
> definition of "just like 'd', but adding thousands separators".
>
> As to the implementation, the OS supplied float formatting does not add
> thousands separators.  I added the function add_thousands_grouping() to
> Python/pystrtod.c in order implement this for floats.  It would be easy
> to make this same code work for integers (and in fact it might already
> work, although there are probably memory allocation issues to deal with).
>
> Maybe we should bring up modifying the PEP on python-dev or python-3000.

I hope that you do:-)

> This issue exists in 2.6 as well.
>
> ----------
> components: +Interpreter Core
> versions: +Python 2.6
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2802>
> __________________________________
History
Date User Action Args
2008-05-09 14:55:34marksetspambayes_score: 0.0103139 -> 0.010313914
recipients: + mark, mark.dickinson, eric.smith
2008-05-09 14:55:33marklinkissue2802 messages
2008-05-09 14:55:32markcreate