Mercurial > cpython-lru_cache-weakref
diff Objects/stringlib/unicodedefs.h @ 52773:28096ed73153
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).
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Fri, 03 Apr 2009 14:45:06 +0000 |
| parents | da47e7e135ae |
| children | f37f6b9b224b |
line wrap: on
line diff
--- a/Objects/stringlib/unicodedefs.h Fri Apr 03 11:19:31 2009 +0000 +++ b/Objects/stringlib/unicodedefs.h Fri Apr 03 14:45:06 2009 +0000 @@ -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
