[issue41549] IDLE leaks `_` into hint box

Terry J. Reedy report at bugs.python.org
Sat Aug 15 06:58:27 EDT 2020


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

The global completion list for Shell or Editor comprises keywords (recently added), builtins, and global names bound by code executed in the current subprocess.  The doc recommends restarting the subprocess when editing so that the global names are those resulting from the code being edited rather than code enter in Shell.  (I an trying to make this even clearer in the doc.)

wyz23x2 appears to claim that at least one leading underscore name, in particular '_', appeared in the list without having ever entered '_' as the prefix to be completed.  That would be a bug.  (_ names appear after ZeroDivisionError.)  This might have happened in the past, but I do not see this in current IDLE.  Without further info, I will close this as 'not a bug'. 

If '_' appeared alone, without the builtins, that would be a deeper bug.

----------
versions: +Python 3.10 -Python 3.8, Python 3.9

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


More information about the Python-bugs-list mailing list