Skip to content

[3.14] gh-127068: Fix repeated multiline REPL prompts - #142817

Closed
yihong0618 wants to merge 1 commit into
python:3.14from
yihong0618:hy/close_issue_127068
Closed

yihong0618 wants to merge 1 commit into
python:3.14from
yihong0618:hy/close_issue_127068

Conversation

@yihong0618

@yihong0618 yihong0618 commented Dec 16, 2025 •

Copy link
Copy Markdown
Contributor

I delete my fork accident, all patch gone, this can be saved....
sorry for the noise

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 3, 2026
Comment thread Lib/_pyrepl/reader.py Outdated

last_refresh_line_end_offsets = self.last_refresh_cache.line_end_offsets
del last_refresh_line_end_offsets[num_common_lines:]
screen = self.last_refresh_cache.screen[:num_common_lines]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can reproduce the duplicate prompt on 3.14. Main and 3.15 show one copy. Can we target 3.14 and skip cached rows that consume no input? That change fixes the display and keeps the cache.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I am almost forgot the issue will re dig it these two days 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done...

@bedevere-app

bedevere-app Bot commented Nov 26, 2026

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Nov 27, 2026
@yihong0618
yihong0618 force-pushed the hy/close_issue_127068 branch from b2e8a76 to f8fe630 Compare November 30, 2026 05:52
@yihong0618 yihong0618 changed the title gh-127068: default REPL where prompts containing newlines would be dup [3.14] gh-127068: Fix repeated multiline REPL prompts Nov 30, 2026
@hugovk

hugovk commented Nov 30, 2026

Copy link
Copy Markdown
Member

Please don't change the base branch or force push PRs, it often results in spamming ~60 people via CODEOWNERS because the branches diverged years ago.

Let's close this one, please open a fresh PR.

@yihong0618

Copy link
Copy Markdown
Contributor Author

Please don't change the base branch or force push PRs, it often results in spamming ~60 people via CODEOWNERS because the branches diverged years ago.

Let's close this one, please open a fresh PR.

sorry I followed the comments will open a new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants