diff options
author | Eric Smith <eric@trueblade.com> | 2009-04-03 14:45:06 +0000 |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2009-04-03 14:45:06 +0000 |
commit | a3b1ac8dca5afa01d9d542e125052014a9af56eb (patch) | |
tree | b48929a3d3460d116182f81e7fb80dab5548211f /Objects/unicodeobject.c | |
parent | f8c8b6d3ea995d9ddce9470fe6fd2a9c956a5d5d (diff) | |
download | cpython-git-a3b1ac8dca5afa01d9d542e125052014a9af56eb.tar.gz |
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).
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4def53768c..d3e5283137 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5635,6 +5635,7 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s, #include "stringlib/partition.h" #define _Py_InsertThousandsGrouping _PyUnicode_InsertThousandsGrouping +#define _Py_InsertThousandsGroupingLocale _PyUnicode_InsertThousandsGroupingLocale #include "stringlib/localeutil.h" /* helper macro to fixup start/end slice values */ |