<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringlib/localeutil.h, branch v3.2b1</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/localeutil.h?h=v3.2b1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/localeutil.h?h=v3.2b1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2009-04-16T20:16:10Z</updated>
<entry>
<title>The other half of Issue #1580: use short float repr where possible.</title>
<updated>2009-04-16T20:16:10Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2009-04-16T20:16:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0923d1d8d7e428297461ed5145f06915c462b25b'/>
<id>urn:sha1:0923d1d8d7e428297461ed5145f06915c462b25b</id>
<content type='text'>
Addresses the float -&gt; string conversion, using David Gay's code which
was added in Mark Dickinson's checkin r71663.

Also addresses these, which are intertwined with the short repr
changes:

- Issue #5772: format(1e100, '&lt;') produces '1e+100', not '1.0e+100'
- Issue #5515: 'n' formatting with commas no longer works poorly
    with leading zeros.
- PEP 378 Format Specifier for Thousands Separator: implemented
    for floats.
</content>
</entry>
<entry>
<title>Added ',' thousands grouping to int.__format__. See PEP 378.</title>
<updated>2009-04-03T14:45:06Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2009-04-03T14:45:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a3b1ac8dca5afa01d9d542e125052014a9af56eb'/>
<id>urn:sha1:a3b1ac8dca5afa01d9d542e125052014a9af56eb</id>
<content type='text'>
This is incomplete, but I want to get some version into the next alpha. I am still working on:
Documentation.
More tests.
Implement for floats.

In addition, there's an existing bug with 'n' formatting that carries forward to thousands grouping (issue 5515).
</content>
</entry>
<entry>
<title>Merged revisions 64491 via svnmerge from</title>
<updated>2008-06-24T01:06:47Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-06-24T01:06:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d7e7a730e05dbf3511f94df400984dd5b7bdfdc'/>
<id>urn:sha1:6d7e7a730e05dbf3511f94df400984dd5b7bdfdc</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r64491 | eric.smith | 2008-06-23 20:42:10 -0400 (Mon, 23 Jun 2008) | 1 line

  Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140.
........
</content>
</entry>
<entry>
<title>Merged revisions 63078 via svnmerge from</title>
<updated>2008-05-11T21:00:57Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-05-11T21:00:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5807c415c5b16b9119895cdc80c4608f37c8c30b'/>
<id>urn:sha1:5807c415c5b16b9119895cdc80c4608f37c8c30b</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

When forward porting this, I added _PyUnicode_InsertThousandsGrouping.

........
  r63078 | eric.smith | 2008-05-11 15:52:48 -0400 (Sun, 11 May 2008) | 14 lines

  Addresses issue 2802: 'n' formatting for integers.

  Adds 'n' as a format specifier for integers, to mirror the same
  specifier which is already available for floats.  'n' is the same as
  'd', but inserts the current locale-specific thousands grouping.

  I added this as a stringlib function, but it's only used by str type,
  not unicode.  This is because of an implementation detail in
  unicode.format(), which does its own str-&gt;unicode conversion.  But the
  unicode version will be needed in 3.0, and it may be needed by other
  code eventually in 2.6 (maybe decimal?), so I left it as a stringlib
  implementation.  As long as the unicode version isn't instantiated,
  there's no overhead for this.
........
</content>
</entry>
</feed>
