[Python-Dev] floating point literals don't work in non-US locale in 2.5 (original) (raw)

Guido van Rossum guido at python.org
Thu Dec 29 19:48:38 CET 2005


Not the first time this happened. :-(

Could someone add a unit test for this please?

--Guido

On 12/28/05, Fredrik Lundh <fredrik at pythonware.com> wrote:

someone recently broke floating point literals in a rather spectacular way:

$ export LANG=svSE.utf8 $ ./python Python 2.5a0 (41806M, Dec 25 2005, 12:12:29) Type "help", "copyright", "credits" or "license" for more information. >>> 3.14 3.1400000000000001 >>> import locale >>> locale.setlocale(locale.LCALL, "") 'svSE.utf8' >>> 3.14 3.0 more here: http://www.python.org/sf/1391872


Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list