[issue39827] setting a locale that uses comma as decimal separator breaks tkinter.DoubleVar
E. Paine
report at bugs.python.org
Fri Jun 12 12:35:37 EDT 2020
E. Paine <paineelisha at gmail.com> added the comment:
Is this a problem exclusive to tkinter? I ran the following code, and it appears to be an issue with the builtin 'float' method:
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, 'de_DE.utf8')
'de_DE.utf8'
>>> float("1,2")
ValueError: could not convert string to float: '1,2'
I have somehow managed to corrupt my locales so I would appreciate if you could try on your machine as well (is it just me?!).
----------
nosy: +epaine
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39827>
_______________________________________
More information about the Python-bugs-list
mailing list