]> granicus.if.org Git - python/commit
Added ',' thousands grouping to int.__format__. See PEP 378.
authorEric Smith <eric@trueblade.com>
Fri, 3 Apr 2009 14:45:06 +0000 (14:45 +0000)
committerEric Smith <eric@trueblade.com>
Fri, 3 Apr 2009 14:45:06 +0000 (14:45 +0000)
commita3b1ac8dca5afa01d9d542e125052014a9af56eb
treeb48929a3d3460d116182f81e7fb80dab5548211f
parentf8c8b6d3ea995d9ddce9470fe6fd2a9c956a5d5d
Added ',' thousands grouping to int.__format__. See PEP 378.

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).
Include/bytesobject.h
Include/unicodeobject.h
Lib/test/test_types.py
Objects/bytesobject.c
Objects/stringlib/formatter.h
Objects/stringlib/localeutil.h
Objects/stringlib/stringdefs.h
Objects/stringlib/unicodedefs.h
Objects/unicodeobject.c
Python/pystrtod.c