classification
Title: idlelib3.0 still using xrange
Type: crash Stage:
Components: IDLE Versions: Python 3.0
process
Status: closed Resolution: duplicate
Dependencies: Superseder: idlelib/EditorWindow.py uses xrange()
View: 2913
Assigned To: kbk Nosy List: kbk, terry.reedy
Priority: normal Keywords:

Created on 2008-06-29 18:19 by terry.reedy, last changed 2008-06-30 03:04 by benjamin.peterson. This issue is now closed.

Messages (1)
msg68962 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2008-06-29 18:19
As reported in the py3 list
  File "/root/Py3kb1/lib/python3.0/tkinter/__init__.py", line 1409,
  in __call__
    return self.func(*args)
  File "/root/Py3kb1/lib/python3.0/idlelib/MultiCall.py", line 165,
  in handler
    r = l[i](event)
  File "/root/Py3kb1/lib/python3.0/idlelib/EditorWindow.py", line 292,
  in home_callback
    for insertpt in xrange(len(line)):
NameError: global name 'xrange' is not defined

I verified this on my xp installation.
I am curious whether 2to3 missed this or if it has never been run over
idlelib (IDLE otherwise works fine as far as I know).
History
Date User Action Args
2008-06-30 03:04:35benjamin.petersonsetstatus: open -> closed
resolution: duplicate
superseder: idlelib/EditorWindow.py uses xrange()
2008-06-29 18:26:45benjamin.petersonsetassignee: kbk
nosy: + kbk
2008-06-29 18:19:44terry.reedycreate