Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE uses non-existent xrange() function (Py30a2) #45926

Closed
mark-summerfield mannequin opened this issue Dec 11, 2007 · 3 comments
Closed

IDLE uses non-existent xrange() function (Py30a2) #45926

mark-summerfield mannequin opened this issue Dec 11, 2007 · 3 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@mark-summerfield
Copy link
Mannequin

mark-summerfield mannequin commented Dec 11, 2007

BPO 1585
Nosy @tiran, @mark-summerfield

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-12-11.08:59:03.002>
created_at = <Date 2007-12-11.08:09:36.251>
labels = ['expert-IDLE', 'type-bug']
title = 'IDLE uses non-existent xrange() function (Py30a2)'
updated_at = <Date 2008-01-06.22:29:44.503>
user = 'https://github.com/mark-summerfield'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:44.503>
actor = 'admin'
assignee = 'none'
closed = True
closed_date = <Date 2007-12-11.08:59:03.002>
closer = 'christian.heimes'
components = ['IDLE']
creation = <Date 2007-12-11.08:09:36.251>
creator = 'mark'
dependencies = []
files = []
hgrepos = []
issue_num = 1585
keywords = []
message_count = 3.0
messages = ['58417', '58418', '58420']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'mark']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1585'
versions = ['Python 3.0']

@mark-summerfield
Copy link
Mannequin Author

mark-summerfield mannequin commented Dec 11, 2007

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 mark-summerfield mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Dec 11, 2007
@mark-summerfield
Copy link
Mannequin Author

mark-summerfield mannequin commented Dec 11, 2007

Amaury Forgeot d'Arc says he's fixed this in change 59456 (but I don't
know how---or if---I can change its status).

@tiran
Copy link
Member

tiran commented Dec 11, 2007

Fixed in r59456

@tiran tiran closed this as completed Dec 11, 2007
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant