-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-96910: IDLE - make autocomplete winnconfig handler only trigger once #28332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
gh-96910: IDLE - make autocomplete winnconfig handler only trigger once #28332
Conversation
… once Before, this was only enforced on the Windows platform, where multiple calls would result in errors. But logically it is the correct behavior, and it allows simplifying the code as well. Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
This PR is stale because it has been open for 30 days with no activity. |
PR #28328 for bpo-45193 was closed and a simpler fix applied to 3.11 and 3.10, with a fix for 3.9 pending. This should work for 3.11 and .10. I am thinking of backporting a simplified version to 3.9 and not worry that it is not perfect. Closing and opening to see current results. In msg401802 of bpo-45193, I said "I would rather make a more extensive change than to patch a badly written function for at least the fourth time. I will open an issue for [this] PR and explain later." If I cannot soon remember what I meant, I should apply this after more test and review. |
Before, this was only enforced on the Windows platform, where multiple calls would result in errors. But logically it is the correct behavior, and it allows simplifying the code as well.
This also includes a minor change to correctly use
platform.system() == "Windows"
rather than.startswith("Windows")
.Note that this requires the fix in PR GH-28328 to work properly on Linux.
Also, note that this has no effect on the position of the completion window while scrolling the editor window, which isn't updated anyways as far as I can tell.