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.0103139
Marked as misclassified No
Message-id <>
In-reply-to <>
On 2008-05-09, Eric Smith wrote:
> Eric Smith <> 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 <>
> <>
> __________________________________
Date User Action Args
2008-05-09 14:55:34marksetspambayes_score: 0.0103139 -> 0.0103139
recipients: + mark, mark.dickinson, eric.smith
2008-05-09 14:55:33marklinkissue2802 messages
2008-05-09 14:55:32markcreate