Bug: (Locale) IDLE/Tkinter/Python?

Adrian Eyre a.eyre at optichrome.com
Wed Oct 6 08:15:16 EDT 1999


I'm not sure how well Python copes with this generally, but
changing my locale so that the thousands sep and decimals sep
(normally ',' , '.') are reversed ('.' , ',') causes a problem
in Tkinter, and therfore IDLE.

But, for some reason, only in embedded code, not Python run from
the commandline. Perhaps by default it ignores locale info.

Traceback (innermost last):
  File "C:\Progra~1\Python\Tools\idle\idle.py", line 2, in ?
    import PyShell
  File "C:\Progra~1\Python\Tools\idle\PyShell.py", line 12, in ?
    from Tkinter import *
  File "C:\Progra~1\Python\Lib\lib-tk\Tkinter.py", line 19, in ?
    TkVersion = _string.atof(_tkinter.TK_VERSION)
ValueError: invalid literal for atof(): 8.0

Any suggestions?

--------------------------------------------
Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233  Fax: +44 1483 760 644
http://www.optichrome.com 
--------------------------------------------





More information about the Python-list mailing list