gh-64007: Do not colorize response to input() in the IDLE Shell - #157700
Conversation
The colorizer treated all text after the I/O mark as code. Now it skips it while the Shell reads a line for input(), and the colors of text typed ahead are removed.
|
Conflict resolution needed, I presume to the merge for async output. Perhaps in the test, where both additions should be done. |
|
Too complex for Claude. Root mistake was using same class name, PyShellTest, for tests needing different setups. I will first rename class for this PR, which should leave an easier-to-fix conflict in the context lines. EDIT: failed. Renaming had no effect or conflict diff other than changing name. Adding space below and above failed. EDIT2: I resolved conflict by accepting current main pieces and pasting in the new, renamed test class after it. |
|
Thanks @serhiy-storchaka for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @serhiy-storchaka and @terryjreedy, I could not cleanly backport this to |
|
GH-157877 is a backport of this pull request to the 3.14 branch. |
|
GH-157878 is a backport of this pull request to the 3.13 branch. |
|
@serhiy-storchaka I forgot what I did before |
GH-157700) (#157878) gh-64007: Do not colorize response to input() in the IDLE Shell (GH-157700) The colorizer treated all text after the I/O mark as code. Now it skips it while the Shell reads a line for input(), and the colors of text typed ahead are removed. --------- (cherry picked from commit f8bbe69) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
GH-157700) (#157877) gh-64007: Do not colorize response to input() in the IDLE Shell (GH-157700) The colorizer treated all text after the I/O mark as code. Now it skips it while the Shell reads a line for input(), and the colors of text typed ahead are removed. --------- (cherry picked from commit f8bbe69) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
The Shell colorizer treated all text after the I/O mark as code, so text entered for
input()got keyword and builtin colors, which stayed after Enter. Now the colorizer skips it while the Shell reads a line forinput(), and the colors of text typed ahead are removed.🤖 Generated with Claude Code