A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-December/059176.html below:

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

[Python-Dev] floating point literals don't work in non-US locale in 2.5 [Python-Dev] floating point literals don't work in non-US locale in 2.5Fredrik Lundh fredrik at pythonware.com
Wed Dec 28 12:09:37 CET 2005
someone recently broke floating point literals in a rather spectacular
way:

$ export LANG=sv_SE.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.LC_ALL, "")
'sv_SE.utf8'
>>> 3.14
3.0

more here:

http://www.python.org/sf/1391872

</F>



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4