summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/unicodedefs.h
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-03 14:45:06 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-03 14:45:06 (GMT)
commita3b1ac8dca5afa01d9d542e125052014a9af56eb (patch)
treeb48929a3d3460d116182f81e7fb80dab5548211f /Objects/stringlib/unicodedefs.h
parentf8c8b6d3ea995d9ddce9470fe6fd2a9c956a5d5d (diff)
downloadcpython-a3b1ac8dca5afa01d9d542e125052014a9af56eb.zip
cpython-a3b1ac8dca5afa01d9d542e125052014a9af56eb.tar.gz
cpython-a3b1ac8dca5afa01d9d542e125052014a9af56eb.tar.bz2
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/stringlib/unicodedefs.h')
-rw-r--r--Objects/stringlib/unicodedefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/unicodedefs.h b/Objects/stringlib/unicodedefs.h
index d579c1c..366acfe 100644
--- a/Objects/stringlib/unicodedefs.h
+++ b/Objects/stringlib/unicodedefs.h
@@ -22,6 +22,7 @@
#define STRINGLIB_RESIZE PyUnicode_Resize
#define STRINGLIB_CHECK PyUnicode_Check
#define STRINGLIB_GROUPING _PyUnicode_InsertThousandsGrouping
+#define STRINGLIB_GROUPING_LOCALE _PyUnicode_InsertThousandsGroupingLocale
#if PY_VERSION_HEX < 0x03000000
#define STRINGLIB_TOSTR PyObject_Unicode