Tal Einat <taleinat+pyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41611>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to