[Python-bugs-list] [Bug #110860] IDLE class browser and decimal comma don't agree (PR#298)
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 7 Sep 2000 15:04:36 -0700
Bug #110860, was updated on 2000-Aug-01 14:38
Here is a current snapshot of the bug.
Project: Python
Category: None
Status: Open
Resolution: None
Bug Group: Irreproducible
Priority: 5
Summary: IDLE class browser and decimal comma don't agree (PR#298)
Details: Jitterbug-Id: 298
Submitted-By: magnus@thinkware.se
Date: Tue, 18 Apr 2000 08:37:02 -0400 (EDT)
Version: 1.5.2
OS: NT 4
As soon as I open the class browser in IDLE (0.5) I get the traceback
below. Previously I had another strange bug that I suspect has to do
with Tcl/Tk and the fact that I have national settings with , (comma)
as decimal separator. With IDLE 0.4, >>> 5 / float(2) would result in
2,5 (not 2.5). It also wanted me to enter data like that. >>> 2.5 * 2
was rejected, and obviously >>> 2,5 * 2 was interpreted as (2, 5) * 2.
This was only a problem in the IDLE shell. Program files ran OK.
Considering "ValueError: invalid literal for float(): 0.0" below I
suspect the errors are related. (A hint is that the problem goes away
if I change the regional settings to decimal . in the control panel.)
>>> Exception in Tkinter callback
Traceback (innermost last):
File "C:\Program\Python\Lib\lib-tk\Tkinter.py", line 764, in __call__
return apply(self.func, args)
File "C:\Program\Python\Tools\idle\EditorWindow.py", line 355, in
open_class_browser
ClassBrowser.ClassBrowser(self.flist, base, [head])
File "C:\Program\Python\Tools\idle\ClassBrowser.py", line 37, in __init__
self.init(flist)
File "C:\Program\Python\Tools\idle\ClassBrowser.py", line 59, in init
node.expand()
File "C:\Program\Python\Tools\idle\TreeWidget.py", line 133, in expand
self.view()
File "C:\Program\Python\Tools\idle\TreeWidget.py", line 144, in view
visible_top = self.canvas.canvasy(0)
File "C:\Program\Python\Lib\lib-tk\Tkinter.py", line 1200, in canvasy
return getdouble(self.tk.call(
ValueError: invalid literal for float(): 0.0
====================================================================
Audit trail:
Mon May 22 17:17:16 2000 guido changed notes
Mon May 22 17:17:16 2000 guido moved from incoming to irreproducible
Follow-Ups:
Date: 2000-Aug-01 14:39
By: none
Comment:
Bizarrely, his locale affects Python number parsing.
Can't reproduce this.
-------------------------------------------------------
Date: 2000-Sep-07 15:04
By: jhylton
Comment:
Please do triage on this bug.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110860&group_id=5470