diff Objects/unicodeobject.c @ 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 e5084d514809
children 4e08b18e38fb
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Fri Apr 03 11:19:31 2009 +0000
+++ b/Objects/unicodeobject.c	Fri Apr 03 14:45:06 2009 +0000
@@ -5635,6 +5635,7 @@
 #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 */