<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/stringlib/localeutil.h, branch v3.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/localeutil.h?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/stringlib/localeutil.h?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-11-26T13:17:01Z</updated>
<entry>
<title>bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718)</title>
<updated>2018-11-26T13:17:01Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-11-26T13:17:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f5fa1b4be735159e964906ab608dc467476e47c'/>
<id>urn:sha1:6f5fa1b4be735159e964906ab608dc467476e47c</id>
<content type='text'>
Fix str.format(), float.__format__() and complex.__format__() methods
for non-ASCII decimal point when using the "n" formatter.

Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires
a _PyUnicodeWriter object for the buffer and a Python str object
for digits.

(cherry picked from commit 59423e3ddd736387cef8f7632c71954c1859bed0)</content>
</entry>
<entry>
<title>Issue #26765: Ensure that bytes- and unicode-specific stringlib files are used</title>
<updated>2016-05-16T06:42:29Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-05-16T06:42:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bcde10aa7e47da68afb68fe75c65b9339dd89f86'/>
<id>urn:sha1:bcde10aa7e47da68afb68fe75c65b9339dd89f86</id>
<content type='text'>
with correct type.
</content>
</entry>
<entry>
<title>Make private function static (from `make smelly`)</title>
<updated>2012-06-21T15:26:28Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2012-06-21T15:26:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a759d4e9f40fd0b757600d5fd3666cdddee113fe'/>
<id>urn:sha1:a759d4e9f40fd0b757600d5fd3666cdddee113fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator</title>
<updated>2012-02-23T23:37:51Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2012-02-23T23:37:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=41a863cb81608c779d60b49e7be8a115816734fc'/>
<id>urn:sha1:41a863cb81608c779d60b49e7be8a115816734fc</id>
<content type='text'>
 * Decode thousands separator and decimal point using PyUnicode_DecodeLocale()
   (from the locale encoding), instead of decoding them implicitly from latin1
 * Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used
 * Change _PyUnicode_InsertThousandsGrouping() API to return the maximum
   character if unicode is NULL
 * Replace MIN/MAX macros by Py_MIN/Py_MAX
 * stringlib/undef.h undefines STRINGLIB_IS_UNICODE
 * stringlib/localeutil.h only supports Unicode
</content>
</entry>
<entry>
<title>Implement PEP 393.</title>
<updated>2011-09-28T05:41:54Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2011-09-28T05:41:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d63a3b8beb4a0841cb59fb3515347ccaab34b733'/>
<id>urn:sha1:d63a3b8beb4a0841cb59fb3515347ccaab34b733</id>
<content type='text'>
</content>
</entry>
<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>
