[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

Terry J. Reedy report at bugs.python.org
Tue May 4 02:06:37 EDT 2021


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I am surprised for 2 reasons.  First, I have seen other improved messages in IDLE, though maybe only for syntax errors.  Second, code entered through IDLE is executed by Python, 'same' in this respect as code entered through the REPL.

In more detail, IDLE calls
  exec(compile(code, '<pyshell>', 'single', 0x200, True))
Still, 'int.reel' does not give the message while 'int.reel' in the exec above does.  I have no idea right now why the difference.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44026>
_______________________________________


More information about the Python-bugs-list mailing list