floating point literals don't work in non-US locale in 2.5
28 Dec
2005
28 Dec
'05
11:09 a.m.
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>
6685
Age (days ago)
6686
Last active (days ago)
2 comments
2 participants
participants (2)
-
Fredrik Lundh
-
Guido van Rossum