[issue3237] idlelib3.0 still using xrange

Terry J. Reedy report at bugs.python.org
Sun Jun 29 20:19:45 CEST 2008


New submission from Terry J. Reedy <tjreedy at udel.edu>:

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).

----------
components: IDLE
messages: 68962
nosy: tjreedy
severity: normal
status: open
title: idlelib3.0 still using xrange
type: crash
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3237>
_______________________________________


More information about the Python-bugs-list mailing list