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 mark
Date 2008-05-09.14:07:59
SpamBayes Score 0.00854157
Marked as misclassified No
Message-id <>
In Py30a5 the 'n' format option is not v. useful for integers:

>>> for x in range(8):
	print("{0:n} ".format(10**x), end="")
1 10 100 1,000 10,000 100,000 1e+06 1e+07

This is because it behaves like g once a number grows large. That makes
sense for floats, but since Python has unlimited size integers there is
currently no built-in way to get, 10**6 to output as 1,000,000 (or using
whatever the user's locale-dependent separator is). (It is easy to write
a suitable function for this, but it just seems that n is a bit of a
teaser in this regard.)

I think that n should stay the same for floats, but for integers should
never switch to g, but just use as many separators as needed.
Date User Action Args
2008-05-09 14:08:09marksetspambayes_score: 0.00854157 -> 0.00854157
recipients: + mark
2008-05-09 14:08:08marksetspambayes_score: 0.00854157 -> 0.00854157
messageid: <>
2008-05-09 14:08:07marklinkissue2802 messages
2008-05-09 14:08:04markcreate