[issue41611] IDLE: problems with completions on Mac

Tal Einat report at bugs.python.org
Thu May 27 06:02:07 EDT 2021


Tal Einat <taleinat+python at gmail.com> added the comment:

I can reproduce this consistently on macOS by running IDLE, typing "sys.ba" in the shell and pressing the tab key.

I've carefully narrowed this down to the call to acw.update() in AutoCompleteWindows.winconfig_event().  Removing that call makes everything work properly.

That call to acw.update() was added to address the bug reported in bpo-37849 (see PR GH-15267).  That bug was reported on Windows, but apparently doesn't occur on macOS.  A quick test on Ubuntu 20.04 with that call removed also appears to not exhibit that bug.

Therefore, I propose making that call only on Windows.

Note that there is already another fragile call in the same method that is conditionally called only on Windows, so there is definitely precedent for such a solution.

----------

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


More information about the Python-bugs-list mailing list