Skip to content

[3.15] gh-105689: Parse only the current statement in the IDLE Shell (GH-157594) - #157650

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-b42dcf6-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-b42dcf6-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Since the prompts moved to the sidebar, sys.ps1 ends with a newline
and prompt_last_line is empty, so HyperParser and newline_and_indent
took the editor path in the Shell and parsed previous output. Use an
explicit is_shell attribute instead.
(cherry picked from commit b42dcf6)

Co-authored-by: Serhiy Storchaka [email protected]
Co-authored-by: Claude Opus 5 (1M context) [email protected]

…ythonGH-157594)

Since the prompts moved to the sidebar, sys.ps1 ends with a newline
and prompt_last_line is empty, so HyperParser and newline_and_indent
took the editor path in the Shell and parsed previous output. Use an
explicit is_shell attribute instead.
(cherry picked from commit b42dcf6)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants