Skip to content

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

Merged
terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-b42dcf6-3.14
Sep 17, 2026
Merged

terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-b42dcf6-3.14

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 b42dcf6d58cbb0e43c0497e6fa14407996c96848)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@terryjreedy
terryjreedy merged commit 29d9453 into python:3.14 Sep 17, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-b42dcf6-3.14 branch September 17, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants