Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.13] gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapi…
…d continuous output. (GH-124310) (#124318) 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 55a5a93) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
- Loading branch information