This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients ned.deily, rhettinger, ronaldoussoren, serhiy.storchaka, taleinat, terry.reedy
Date 2021-05-27.10:02:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622109727.39.0.374801058024.issue41611@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-05-27 10:02:07taleinatsetrecipients: + taleinat, rhettinger, terry.reedy, ronaldoussoren, ned.deily, serhiy.storchaka
2021-05-27 10:02:07taleinatsetmessageid: <1622109727.39.0.374801058024.issue41611@roundup.psfhosted.org>
2021-05-27 10:02:07taleinatlinkissue41611 messages
2021-05-27 10:02:07taleinatcreate