STINNER Victor <victor.stin...@gmail.com> added the comment: I completed my change. It now fixes locale.localeconv(), str.format() for int, float, complex and decimal.Decimal:
vstinner@apu$ ./python lc_numeric.py LC_CTYPE: ('fr_FR', 'ISO8859-1') LC_NUMERIC: ('es_MX', 'UTF-8') decimal_point: '.' thousands_sep: '\u2009' grouping: [3, 3, 0] int.__format__: '1\u2009234' float.__format__: '1\u2009234' complex.__format__: '1\u2009234+0j' Decimal.__format__: '1\u2009234' ---------- Added file: https://bugs.python.org/file47377/lc_numeric.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31900> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com