From a3b1ac8dca5afa01d9d542e125052014a9af56eb Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Fri, 3 Apr 2009 14:45:06 +0000 Subject: 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). --- Objects/stringlib/stringdefs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Objects/stringlib/stringdefs.h') diff --git a/Objects/stringlib/stringdefs.h b/Objects/stringlib/stringdefs.h index 946de05032..1659315ea4 100644 --- a/Objects/stringlib/stringdefs.h +++ b/Objects/stringlib/stringdefs.h @@ -24,5 +24,6 @@ #define STRINGLIB_CMP memcmp #define STRINGLIB_TOSTR PyObject_Str #define STRINGLIB_GROUPING _PyBytes_InsertThousandsGrouping +#define STRINGLIB_GROUPING_LOCALE _PyBytes_InsertThousandsGroupingLocale #define STRINGLIB_TOASCII PyObject_Repr #endif /* !STRINGLIB_STRINGDEFS_H */ -- cgit v1.2.1