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). --- Python/pystrtod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/pystrtod.c b/Python/pystrtod.c index b3738528db..b81abcea99 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -368,7 +368,7 @@ add_thousands_grouping(char* buffer, size_t buf_size) /* At this point, p points just past the right-most character we want to format. We need to add the grouping string for the characters between buffer and p. */ - return _PyBytes_InsertThousandsGrouping(buffer, len, p-buffer, + return _PyBytes_InsertThousandsGroupingLocale(buffer, len, p-buffer, buf_size, NULL, 1); } -- cgit v1.2.1