[Python-3000] poss bug in IDLE 30a1 in Python 30a2

Mark Summerfield mark at qtrac.eu
Mon Dec 10 15:45:23 CET 2007


Hi,

When I start IDLE I get this:

Python 3.0a2 (r30a2:59382, Dec 10 2007, 14:21:37) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************
    
IDLE 3.0a1      
>>>

That's fine (if slightly confusing regarding the version numbers), but
if I click Options->Configure I get this error output:

: Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/mark/opt/python30a2/lib/python3.0/lib-tk/Tkinter.py", line 1402, 
in __call__
    return self.func(*args)
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/EditorWindow.py", line 
385, in config_dialog
    configDialog.ConfigDialog(self.top,'Settings')
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/configDialog.py", line 
50, in __init__
    self.CreateWidgets()
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/configDialog.py", line 
69, in CreateWidgets
    page_names=['Fonts/Tabs','Highlighting','Keys','General'])
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
398, in __init__
    self.add_page(name)
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
413, in add_page
    self._tab_set.add_tab(page_name)
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
76, in add_tab
    self._arrange_tabs()
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
163, in _arrange_tabs
    for row_index in xrange(n_rows):
NameError: global name 'xrange' is not defined

I tried changing xrange to range, but that doesn't work:

: Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/mark/opt/python30a2/lib/python3.0/lib-tk/Tkinter.py", line 1402, 
in __call__
    return self.func(*args)
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/EditorWindow.py", line 
385, in config_dialog
    configDialog.ConfigDialog(self.top,'Settings')
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/configDialog.py", line 
50, in __init__
    self.CreateWidgets()
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/configDialog.py", line 
69, in CreateWidgets
    page_names=['Fonts/Tabs','Highlighting','Keys','General'])
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
398, in __init__
    self.add_page(name)
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
413, in add_page
    self._tab_set.add_tab(page_name)
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
76, in add_tab
    self._arrange_tabs()
  File "/home/mark/opt/python30a2/lib/python3.0/idlelib/tabbedpages.py", line 
148, in _arrange_tabs
    for tab_name in self._tabs.keys():
RuntimeError: dictionary changed size during iteration

-- 
Mark Summerfield, Qtrac Ltd., www.qtrac.eu



More information about the Python-3000 mailing list