Skip to content

Commit

Permalink
[3.12] gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapi…
Browse files Browse the repository at this point in the history
…d continuous output. (GH-124310) (#124319)

gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310)

python/cpython#88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS.  While theoretically correct, the result was Shell freezing when receiving continuous short strings to print.  Test: `while 1: 1`.

The guess is that there is no idle time in which to do the screen update.  Reverting the change in one of the files,
outwin, fixes the issue.  Colorizer runs ever 1/20 second and seems to work fine.

When running test-outwin on macOS, alias 'update'
to 'update_idletasks on the text used for testing.
(cherry picked from commit d5f95ec07bb47a4d6554e04d13a979dbeac05f74)

Co-authored-by: Terry Jan Reedy <[email protected]>

CPython-sync-commit-latest: cf39a5f22cadd0078815e5beea944b350287417d
  • Loading branch information
github-actions[bot] committed Sep 22, 2024
1 parent 3a1deed commit 6e6a629
Showing 1 changed file with 12,997 additions and 12,992 deletions.
Loading

0 comments on commit 6e6a629

Please sign in to comment.