This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Unsupported provider

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 2022-04-11 14:56 by admin. 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
2022-04-11 14:56:36adminsetgithub: 47487
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